cc-wrapper: Pull variable mangler into utils.sh

In preparation for splitting out bintools-wrapper
This commit is contained in:
John Ericson
2017-12-13 16:08:13 -05:00
parent 45d4b27d02
commit fc7ed86915
5 changed files with 24 additions and 16 deletions
@@ -17,12 +17,12 @@ if [ -n "@coreutils_bin@" ]; then
PATH="@coreutils_bin@/bin"
fi
source @out@/nix-support/utils.sh
if [ -z "${NIX_@infixSalt@_GNAT_WRAPPER_FLAGS_SET:-}" ]; then
source @out@/nix-support/add-flags.sh
fi
source @out@/nix-support/utils.sh
# Figure out if linker flags should be passed. GCC prints annoying
# warnings when they are not needed.