summary refs log tree commit diff
path: root/pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-09-20 11:35:58 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-09-26 11:24:19 -0400
commit0d3d2a01d20d88dde3696ead43c557c1f3043ee7 (patch)
treee89c3860532f30da7cef01674be3f47d8f31b0ea /pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh
parentf6fcb9bc0d33e59b09d1b4b9e15d83260954f850 (diff)
downloadnixpkgs-0d3d2a01d20d88dde3696ead43c557c1f3043ee7.tar
nixpkgs-0d3d2a01d20d88dde3696ead43c557c1f3043ee7.tar.gz
nixpkgs-0d3d2a01d20d88dde3696ead43c557c1f3043ee7.tar.bz2
nixpkgs-0d3d2a01d20d88dde3696ead43c557c1f3043ee7.tar.lz
nixpkgs-0d3d2a01d20d88dde3696ead43c557c1f3043ee7.tar.xz
nixpkgs-0d3d2a01d20d88dde3696ead43c557c1f3043ee7.tar.zst
nixpkgs-0d3d2a01d20d88dde3696ead43c557c1f3043ee7.zip
cc-wrapper: Add `set -x` tracing for NIX_DEBUG >= 7
Diffstat (limited to 'pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh')
-rwxr-xr-xpkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh b/pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh
index 72c999ff8bc..5d81e34a047 100755
--- a/pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh
+++ b/pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh
@@ -2,6 +2,10 @@
 set -eu -o pipefail
 shopt -s nullglob
 
+if (( "${NIX_DEBUG:-0}" >= 7 )); then
+    set -x
+fi
+
 declare -a args=("$@")
 # 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