mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
Revert "cc-wrapper: fix set -u errors"
This reverts commit 67a41eafe9
.
see #28021 for discussion
This commit is contained in:
parent
67a41eafe9
commit
3e981b9e33
@ -10,13 +10,12 @@ declare -a role_prefixes=()
|
|||||||
if [[ -n "${NIX_CC_WRAPPER_@infixSalt@_TARGET_BUILD:-}" ]]; then
|
if [[ -n "${NIX_CC_WRAPPER_@infixSalt@_TARGET_BUILD:-}" ]]; then
|
||||||
role_prefixes+=(_BUILD)
|
role_prefixes+=(_BUILD)
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${NIX_CC_WRAPPER_@infixSalt@_TARGET_HOST:-}" ]]; then
|
||||||
|
role_prefixes+=('')
|
||||||
|
fi
|
||||||
if [[ -n "${NIX_CC_WRAPPER_@infixSalt@_TARGET_TARGET:-}" ]]; then
|
if [[ -n "${NIX_CC_WRAPPER_@infixSalt@_TARGET_TARGET:-}" ]]; then
|
||||||
role_prefixes+=(_TARGET)
|
role_prefixes+=(_TARGET)
|
||||||
fi
|
fi
|
||||||
# use this as default if no role is inferred
|
|
||||||
if [[ -n "${NIX_CC_WRAPPER_@infixSalt@_TARGET_HOST:-}" || ${#role_prefixes[@]} -eq 0 ]]; then
|
|
||||||
role_prefixes+=('')
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For each role we serve, we accumulate the input parameters into our own
|
# For each role we serve, we accumulate the input parameters into our own
|
||||||
# cc-wrapper-derivation-specific environment variables.
|
# cc-wrapper-derivation-specific environment variables.
|
||||||
|
@ -20,11 +20,6 @@ fi
|
|||||||
|
|
||||||
source @out@/nix-support/utils.sh
|
source @out@/nix-support/utils.sh
|
||||||
|
|
||||||
# make set -u happy if the outside environment is unset
|
|
||||||
# this should never happen, but does in an LLVM test
|
|
||||||
if [ -z "${NIX_STORE:-}" ]; then
|
|
||||||
NIX_STORE=/nix/store
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Optionally filter out paths not refering to the store.
|
# Optionally filter out paths not refering to the store.
|
||||||
expandResponseParams "$@"
|
expandResponseParams "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user