nixpkgs/pkgs/build-support/cc-wrapper/go-wrapper.sh
2023-01-20 14:31:54 +01:00

12 lines
161 B
Bash

#! @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@ "$@"