]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix TestCgoContainsSpace
authorHiroshi Ioka <hirochachacha@gmail.com>
Fri, 12 May 2017 00:04:55 +0000 (09:04 +0900)
committerIan Lance Taylor <iant@golang.org>
Fri, 12 May 2017 01:10:11 +0000 (01:10 +0000)
commit482da5180375404439d58cf4f865ed8bc37c6a63
tree183e1cf7206651fc8e9da5fa0fd16081316ba49c
parent978af9c2dbb4982f62dee6b84c48e06e0d4c085c
cmd/go: fix TestCgoContainsSpace

TestCgoContainsSpace builds a small program which mimics $CC.
Usually, $CC attempts to compile a trivial code to detect its own
supported flags (i.e. "-no-pie", which must be passed on some systems),
however the mimic didn't consider these cases.

This CL solve the issue.

Also, use the same name as $CC, it may solve other potential problems.

Fixes #20324

Change-Id: I7a00ac016a5fd0667540f2a715371f8152edc395
Reviewed-on: https://go-review.googlesource.com/43330
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go