cc-wrapper: Add set -x
tracing for NIX_DEBUG >= 7
This commit is contained in:
parent
f6fcb9bc0d
commit
0d3d2a01d2
@ -2,6 +2,10 @@
|
|||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
||||||
|
if (( "${NIX_DEBUG:-0}" >= 7 )); then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
path_backup="$PATH"
|
path_backup="$PATH"
|
||||||
|
|
||||||
# That @-vars are substituted separately from bash evaluation makes
|
# That @-vars are substituted separately from bash evaluation makes
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
||||||
|
if (( "${NIX_DEBUG:-0}" >= 7 )); then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
# N.B. Gnat is not used during bootstrapping, so we don't need to
|
# N.B. Gnat is not used during bootstrapping, so we don't need to
|
||||||
# worry about the old bash empty array `set -u` workarounds.
|
# worry about the old bash empty array `set -u` workarounds.
|
||||||
|
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
||||||
|
if (( "${NIX_DEBUG:-0}" >= 7 )); then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
# N.B. Gnat is not used during bootstrapping, so we don't need to
|
# N.B. Gnat is not used during bootstrapping, so we don't need to
|
||||||
# worry about the old bash empty array `set -u` workarounds.
|
# worry about the old bash empty array `set -u` workarounds.
|
||||||
|
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
||||||
|
if (( "${NIX_DEBUG:-0}" >= 7 )); then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
declare -a args=("$@")
|
declare -a args=("$@")
|
||||||
# I've also tried adding -z direct and -z lazyload, but it gave too many problems with C++ exceptions :'(
|
# I've also tried adding -z direct and -z lazyload, but it gave too many problems with C++ exceptions :'(
|
||||||
# Also made sure libgcc would not be lazy-loaded, as suggested here: https://www.illumos.org/issues/2534#note-3
|
# Also made sure libgcc would not be lazy-loaded, as suggested here: https://www.illumos.org/issues/2534#note-3
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
||||||
|
if (( "${NIX_DEBUG:-0}" >= 7 )); then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
path_backup="$PATH"
|
path_backup="$PATH"
|
||||||
|
|
||||||
# phase separation makes this look useless
|
# phase separation makes this look useless
|
||||||
|
Loading…
x
Reference in New Issue
Block a user