aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-06-11 22:58:23 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-11 23:18:52 +0200
commit829fd56fbf6fc9243f8ac969c7c58172e5adcb45 (patch)
tree9833ead4611328df14c68dd6a71145b3cbe172d4 /sys
parent0f23e882fa8ef33d4f44a3fc0a5bba7a32889801 (diff)
sys/targets: always fail if SOURCEDIR_GOOS is set but compiler is broken
We should not skip the second check as well.
Diffstat (limited to 'sys')
-rw-r--r--sys/targets/targets.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index dfe699ea8..82ea52139 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -562,7 +562,7 @@ func (target *Target) lazyInit() {
// fatal error: asm/unistd.h: No such file or directory
// fatal error: asm/errno.h: No such file or directory
// collect2: error: ld terminated with signal 11 [Segmentation fault]
- if runningOnCI {
+ if runningOnCI || os.Getenv("SOURCEDIR_"+strings.ToUpper(target.OS)) != "" {
return // On CI all compilers are expected to work, so we don't do the following check.
}
args := []string{"-x", "c++", "-", "-o", "/dev/null"}