gccgo: wrap go binary (#207670)
This commit is contained in:
parent
41d4ae90d3
commit
7a05f9de7d
@ -264,6 +264,7 @@ stdenv.mkDerivation {
|
||||
|
||||
+ optionalString cc.langGo or false ''
|
||||
wrap ${targetPrefix}gccgo $wrapper $ccPath/${targetPrefix}gccgo
|
||||
wrap ${targetPrefix}go ${./go-wrapper.sh} $ccPath/${targetPrefix}go
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
11
pkgs/build-support/cc-wrapper/go-wrapper.sh
Normal file
11
pkgs/build-support/cc-wrapper/go-wrapper.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#! @shell@
|
||||
set -eu -o pipefail +o posix
|
||||
shopt -s nullglob
|
||||
|
||||
if (( "${NIX_DEBUG:-0}" >= 7 )); then
|
||||
set -x
|
||||
fi
|
||||
|
||||
export GCCGO="@out@/bin/gccgo"
|
||||
|
||||
exec @prog@ "$@"
|
Loading…
Reference in New Issue
Block a user