| 1 | Make library/header paths visible to cmd/go script tests, which is necessary for
|
| 2 | cgo/gccgo tests to work correctly
|
| 3 |
|
| 4 | diff --git a/src/cmd/go/script_test.go b/src/cmd/go/script_test.go
|
| 5 | index dfaa40548e..9d0f0e9bcd 100644
|
| 6 | |
| 7 | |
| 8 | @@ -100,6 +100,10 @@ const (
|
| 9 | var extraEnvKeys = []string{
|
| 10 | "SYSTEMROOT", // must be preserved on Windows to find DLLs; golang.org/issue/25210
|
| 11 | "WINDIR", // must be preserved on Windows to be able to run PowerShell command; golang.org/issue/30711
|
| 12 | + "CPATH",
|
| 13 | + "C_INCLUDE_PATH",
|
| 14 | + "CPLUS_INCLUDE_PATH",
|
| 15 | + "LIBRARY_PATH",
|
| 16 | "LD_LIBRARY_PATH", // must be preserved on Unix systems to find shared libraries
|
| 17 | "CC", // don't lose user settings when invoking cgo
|
| 18 | "GO_TESTING_GOTOOLS", // for gccgo testing
|