···2set -eu -o pipefail
3shopt -s nullglob
400005path_backup="$PATH"
67# That @-vars are substituted separately from bash evaluation makes
···2set -eu -o pipefail
3shopt -s nullglob
45+if (( "${NIX_DEBUG:-0}" >= 7 )); then
6+ set -x
7+fi
8+9path_backup="$PATH"
1011# That @-vars are substituted separately from bash evaluation makes
+4
pkgs/build-support/cc-wrapper/gnat-wrapper.sh
···2set -eu -o pipefail
3shopt -s nullglob
400005# N.B. Gnat is not used during bootstrapping, so we don't need to
6# worry about the old bash empty array `set -u` workarounds.
7
···2set -eu -o pipefail
3shopt -s nullglob
45+if (( "${NIX_DEBUG:-0}" >= 7 )); then
6+ set -x
7+fi
8+9# N.B. Gnat is not used during bootstrapping, so we don't need to
10# worry about the old bash empty array `set -u` workarounds.
11
+4
pkgs/build-support/cc-wrapper/gnatlink-wrapper.sh
···2set -eu -o pipefail
3shopt -s nullglob
400005# N.B. Gnat is not used during bootstrapping, so we don't need to
6# worry about the old bash empty array `set -u` workarounds.
7
···2set -eu -o pipefail
3shopt -s nullglob
45+if (( "${NIX_DEBUG:-0}" >= 7 )); then
6+ set -x
7+fi
8+9# N.B. Gnat is not used during bootstrapping, so we don't need to
10# worry about the old bash empty array `set -u` workarounds.
11
···2set -eu -o pipefail
3shopt -s nullglob
400005declare -a args=("$@")
6# I've also tried adding -z direct and -z lazyload, but it gave too many problems with C++ exceptions :'(
7# Also made sure libgcc would not be lazy-loaded, as suggested here: https://www.illumos.org/issues/2534#note-3
···2set -eu -o pipefail
3shopt -s nullglob
45+if (( "${NIX_DEBUG:-0}" >= 7 )); then
6+ set -x
7+fi
8+9declare -a args=("$@")
10# I've also tried adding -z direct and -z lazyload, but it gave too many problems with C++ exceptions :'(
11# Also made sure libgcc would not be lazy-loaded, as suggested here: https://www.illumos.org/issues/2534#note-3
+4
pkgs/build-support/cc-wrapper/ld-wrapper.sh
···2set -eu -o pipefail
3shopt -s nullglob
400005path_backup="$PATH"
67# phase separation makes this look useless
···2set -eu -o pipefail
3shopt -s nullglob
45+if (( "${NIX_DEBUG:-0}" >= 7 )); then
6+ set -x
7+fi
8+9path_backup="$PATH"
1011# phase separation makes this look useless