> 2025-03-06 Bruno Haible <br...@clisp.org> > > gocomp-script: New module. > * m4/gocomp.m4: New file. > * build-aux/gocomp.sh.in: New file. > * modules/gocomp-script: New file.
A small tweak for MSVC, when the 'go' implementation is a native Windows one: 2025-03-07 Bruno Haible <br...@clisp.org> gocomp-script: Avoid error on native Windows. * build-aux/gocomp.sh.in: Unset CC and CXX. diff --git a/build-aux/gocomp.sh.in b/build-aux/gocomp.sh.in index b4af4edaea..360f27f316 100644 --- a/build-aux/gocomp.sh.in +++ b/build-aux/gocomp.sh.in @@ -19,5 +19,11 @@ # Usage: /bin/sh gocomp.sh [OPTION] SOURCE.go ... +# Avoid error "CC environment variable is relative; must be absolute path" +# on native Windows. Cf. +# <https://github.com/golang/go/commit/aa161e799df7e1eba99d2be10271e76b6f758142> +unset CC +unset CXX + test -z "$GO_VERBOSE" || echo "@GO@ build @GOCOMPFLAGS@ $@" exec @GO@ build @GOCOMPFLAGS@ "$@"