]> Savannah Git Hosting - gnulib.git/commitdiff
gocomp-script: Avoid error on native Windows.
authorBruno Haible <bruno@clisp.org>
Sat, 8 Mar 2025 03:08:10 +0000 (04:08 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 8 Mar 2025 03:08:10 +0000 (04:08 +0100)
* build-aux/gocomp.sh.in: Unset CC and CXX.

ChangeLog
build-aux/gocomp.sh.in

index f2e73bda2017acd30ff263cd502c1a93bb10904b..33a13bf438af2c84d92a7d41ec9a737eabf91db2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-03-07  Bruno Haible  <bruno@clisp.org>
+
+       gocomp-script: Avoid error on native Windows.
+       * build-aux/gocomp.sh.in: Unset CC and CXX.
+
 2025-03-06  Bruno Haible  <bruno@clisp.org>
 
        gocomp-script: New module.
index b4af4edaead69881eb9bcf0e70379a9fdf9b21d8..360f27f316e66c55f6add741c2bbc27420ebc4c7 100644 (file)
 
 # 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@ "$@"