1 # See add-flags.sh in cc-wrapper for comments.
8 for var
in "${var_templates_list[@]}"; do
9 mangleVarList
"$var" ${role_suffixes[@]+"${role_suffixes[@]}"}
12 # `-B@out@/bin' forces cc to use wrapped as instead of the system one.
13 NIX_GNATMAKE_CARGS_@suffixSalt@
="$NIX_GNATMAKE_CARGS_@suffixSalt@ -B@out@/bin/"
15 # Only add darwin min version flag if a default darwin min version is set,
16 # which is a signal that we're targetting darwin.
17 if [ "@darwinMinVersion@" ]; then
18 mangleVarSingle @darwinMinVersionVariable@
${role_suffixes[@]+"${role_suffixes[@]}"}
20 NIX_GNATMAKE_CARGS_@suffixSalt@
="-m@darwinPlatformForCC@-version-min=${@darwinMinVersionVariable@_@suffixSalt@:-@darwinMinVersion@} $NIX_GNATMAKE_CARGS_@suffixSalt@"
23 export NIX_GNAT_WRAPPER_EXTRA_FLAGS_SET_@suffixSalt@
=1