diff options
author | Dmitri Shuralyov <dmitshur@golang.org> | 2021-02-05 19:51:49 +0000 |
---|---|---|
committer | Dmitri Shuralyov <dmitshur@golang.org> | 2021-02-05 19:51:49 +0000 |
commit | 47419f9cac614b7047eca4ecf767e3bbe0f63638 (patch) | |
tree | 4d416542cb2cdfbdc6a46e3cd2bb0f3fea98bc69 /src/cmd/go/testdata/script/cgo_path.txt | |
parent | 9cf003256bc39608db03d7b82f7120715a0fca43 (diff) | |
parent | 5cf057ddedfbb149b71c85ec86050431dd6b2d9d (diff) | |
download | go-dev.boringcrypto.go1.14.tar.gz go-dev.boringcrypto.go1.14.zip |
[dev.boringcrypto.go1.14] all: merge go1.14.15 into dev.boringcrypto.go1.14dev.boringcrypto.go1.14
Change-Id: I0abd542a4c1cd90c29eb4c65493548af575e07ab
Diffstat (limited to 'src/cmd/go/testdata/script/cgo_path.txt')
-rw-r--r-- | src/cmd/go/testdata/script/cgo_path.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/cmd/go/testdata/script/cgo_path.txt b/src/cmd/go/testdata/script/cgo_path.txt index e4d07dea2c..548a65ffa8 100644 --- a/src/cmd/go/testdata/script/cgo_path.txt +++ b/src/cmd/go/testdata/script/cgo_path.txt @@ -1,12 +1,20 @@ [!cgo] skip +# Set CC explicitly to something that requires a PATH lookup. +# Normally, the default is gcc or clang, but if CC was set during make.bash, +# that becomes the default. +[exec:clang] env CC=clang +[exec:gcc] env CC=gcc +[!exec:clang] [!exec:gcc] skip 'Unknown C compiler' + env GOCACHE=$WORK/gocache # Looking for compile flags, so need a clean cache. [!windows] env PATH=.:$PATH -[!windows] chmod 0777 p/gcc p/clang +[!windows] chmod 0755 p/gcc p/clang [!windows] exists p/gcc p/clang [windows] exists p/gcc.bat p/clang.bat ! exists p/bug.txt -go build -x +! go build -x +stderr '^cgo: exec (clang|gcc): (clang|gcc) resolves to executable in current directory \(.[/\\](clang|gcc)(.bat)?\)$' ! exists p/bug.txt -- go.mod -- |