Unverified Commit 7a05f9de authored by Yureka's avatar Yureka Committed by GitHub
Browse files

gccgo: wrap go binary (#207670)

parent 41d4ae90
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
#! @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@ "$@"