Merge pull request #43664 from nlewo/pr-go-x

goBuildPackage: Add -x to the go build command if NIX_DEBUG >= 1
This commit is contained in:
lewo 2018-07-24 14:24:55 +02:00 committed by GitHub
commit c5f1eea023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,6 +151,10 @@ go.stdenv.mkDerivation (
fi
}
if (( "''${NIX_DEBUG:-0}" >= 1 )); then
buildFlagsArray+=(-x)
fi
if [ ''${#buildFlagsArray[@]} -ne 0 ]; then
declare -p buildFlagsArray > $TMPDIR/buildFlagsArray
else