cc-wrapper: Pull variable mangler into utils.sh

In preparation for splitting out binutils-wrapper
This commit is contained in:
John Ericson
2017-09-01 11:44:54 -04:00
parent 94c0267fc1
commit 1f5807d760
5 changed files with 24 additions and 16 deletions
+2 -2
View File
@@ -11,12 +11,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.