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
+2 -2
View File
@@ -15,12 +15,12 @@ if [[ -n "@coreutils_bin@" && -n "@gnugrep_bin@" ]]; then
PATH="@coreutils_bin@/bin:@gnugrep_bin@/bin"
fi
source @out@/nix-support/utils.sh
if [ -z "${NIX_CC_WRAPPER_@infixSalt@_FLAGS_SET:-}" ]; then
source @out@/nix-support/add-flags.sh
fi
source @out@/nix-support/utils.sh
# Parse command line options and set several variables.
# For instance, figure out if linker flags should be passed.