pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / build-support / cc-wrapper / add-gnat-extra-flags.sh
blobceff1e4a4c4a558850d55e664cd873f8bd68ad60
1 # See add-flags.sh in cc-wrapper for comments.
2 var_templates_list=(
3 NIX_GNATMAKE_CARGS
6 accumulateRoles
8 for var in "${var_templates_list[@]}"; do
9 mangleVarList "$var" ${role_suffixes[@]+"${role_suffixes[@]}"}
10 done
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