cc-wrapper: Add `set -x` tracing for NIX_DEBUG >= 7

+20
+4
pkgs/build-support/cc-wrapper/cc-wrapper.sh
··· 2 set -eu -o pipefail 3 shopt -s nullglob 4 5 path_backup="$PATH" 6 7 # That @-vars are substituted separately from bash evaluation makes
··· 2 set -eu -o pipefail 3 shopt -s nullglob 4 5 + if (( "${NIX_DEBUG:-0}" >= 7 )); then 6 + set -x 7 + fi 8 + 9 path_backup="$PATH" 10 11 # That @-vars are substituted separately from bash evaluation makes
+4
pkgs/build-support/cc-wrapper/gnat-wrapper.sh
··· 2 set -eu -o pipefail 3 shopt -s nullglob 4 5 # 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
··· 2 set -eu -o pipefail 3 shopt -s nullglob 4 5 + 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/ld-solaris-wrapper.sh
··· 2 set -eu -o pipefail 3 shopt -s nullglob 4 5 declare -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
··· 2 set -eu -o pipefail 3 shopt -s nullglob 4 5 + if (( "${NIX_DEBUG:-0}" >= 7 )); then 6 + set -x 7 + fi 8 + 9 declare -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
··· 2 set -eu -o pipefail 3 shopt -s nullglob 4 5 path_backup="$PATH" 6 7 # phase separation makes this look useless
··· 2 set -eu -o pipefail 3 shopt -s nullglob 4 5 + if (( "${NIX_DEBUG:-0}" >= 7 )); then 6 + set -x 7 + fi 8 + 9 path_backup="$PATH" 10 11 # phase separation makes this look useless