diff options
author | John Ericson <Ericson2314@yahoo.com> | 2017-09-26 14:05:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 14:05:00 -0400 |
commit | 87067dc471a1592f4933f283648eb52a99f096b5 (patch) | |
tree | 22d4cd75fa7ff727968edace375d876e5b703d8a /pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh | |
parent | 332dc7c719f805812eb5f33ab3e4670bb5b10d69 (diff) | |
parent | 0d3d2a01d20d88dde3696ead43c557c1f3043ee7 (diff) | |
download | nixlib-87067dc471a1592f4933f283648eb52a99f096b5.tar nixlib-87067dc471a1592f4933f283648eb52a99f096b5.tar.gz nixlib-87067dc471a1592f4933f283648eb52a99f096b5.tar.bz2 nixlib-87067dc471a1592f4933f283648eb52a99f096b5.tar.lz nixlib-87067dc471a1592f4933f283648eb52a99f096b5.tar.xz nixlib-87067dc471a1592f4933f283648eb52a99f096b5.tar.zst nixlib-87067dc471a1592f4933f283648eb52a99f096b5.zip |
Merge pull request #29580 from obsidiansystems/stdenv-super-debug
stdenv: Provide a way for full `set -x` debugging
Diffstat (limited to 'pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh')
-rwxr-xr-x | pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh | 4 |
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 72c999ff8bc8..5d81e34a047f 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 |