Hi Bruno,

Bruno Haible via Gnulib discussion list <bug-gnulib@gnu.org> writes:

> +# 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

The CC and CXX variable are used to determine what C and C++ compiler to
use when writing code using the "C" psuedo-package [1].

It should still build using the system's default compiler, but if
someone set CC and CXX in their environment this would be undesired.

Not sure if it is worth the complexity of adding OS detection and
absolute path checking to this script, but I figured it was worth
mentioning.

Collin

[1] https://pkg.go.dev/cmd/cgo

Reply via email to