core/pkgs/build-support/cc-wrapper/go-wrapper.sh
2024-05-13 11:34:52 -04: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@ "$@"