From: Bruno Haible Date: Sat, 8 Mar 2025 03:08:10 +0000 (+0100) Subject: gocomp-script: Avoid error on native Windows. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=de9671e9cae1dd9b6d1c41a377726aff9dcbdba1;p=gnulib.git gocomp-script: Avoid error on native Windows. * build-aux/gocomp.sh.in: Unset CC and CXX. --- diff --git a/ChangeLog b/ChangeLog index f2e73bda20..33a13bf438 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-03-07 Bruno Haible + + gocomp-script: Avoid error on native Windows. + * build-aux/gocomp.sh.in: Unset CC and CXX. + 2025-03-06 Bruno Haible gocomp-script: New module. 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. +# +unset CC +unset CXX + test -z "$GO_VERBOSE" || echo "@GO@ build @GOCOMPFLAGS@ $@" exec @GO@ build @GOCOMPFLAGS@ "$@"