mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 06:31:20 +00:00
bintools-wrapper: ensure roles are set before mangling variables
This commit is contained in:
parent
33265e0dd9
commit
6ee72dd5ab
@ -21,6 +21,15 @@ havePlatformVersionFlag=
|
|||||||
haveDarwinSDKVersion=
|
haveDarwinSDKVersion=
|
||||||
haveDarwinPlatformVersion=
|
haveDarwinPlatformVersion=
|
||||||
|
|
||||||
|
# Roles will set by add-flags.sh, but add-flags.sh can be skipped when the
|
||||||
|
# cc-wrapper has added the linker flags. Both the cc-wrapper and the binutils
|
||||||
|
# wrapper mangle the same variable (MACOSX_DEPLOYMENT_TARGET), so if roles are
|
||||||
|
# empty due to being run through the cc-wrapper then the mangle here is a no-op
|
||||||
|
# and we still do the right thing.
|
||||||
|
#
|
||||||
|
# To be robust, make sure we always have the correct set of roles.
|
||||||
|
accumulateRoles
|
||||||
|
|
||||||
mangleVarSingle @darwinMinVersionVariable@ ${role_suffixes[@]+"${role_suffixes[@]}"}
|
mangleVarSingle @darwinMinVersionVariable@ ${role_suffixes[@]+"${role_suffixes[@]}"}
|
||||||
|
|
||||||
n=0
|
n=0
|
||||||
|
Loading…
Reference in New Issue
Block a user