mirror of https://github.com/golang/go.git
misc/cgo/testcshared: use correct install directory on windows
Updates #11058 Change-Id: I2a8bf4403b680ab8bf06fff18291f3bf67261e27 Reviewed-on: https://go-review.googlesource.com/69090 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
e285f39248
commit
e8a27daaef
|
|
@ -42,15 +42,15 @@ func TestMain(m *testing.M) {
|
||||||
|
|
||||||
// Directory where cgo headers and outputs will be installed.
|
// Directory where cgo headers and outputs will be installed.
|
||||||
// The installation directory format varies depending on the platform.
|
// The installation directory format varies depending on the platform.
|
||||||
installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared_shared", GOOS, GOARCH))
|
installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared", GOOS, GOARCH))
|
||||||
switch GOOS {
|
switch GOOS {
|
||||||
case "darwin":
|
case "darwin":
|
||||||
libSuffix = "dylib"
|
libSuffix = "dylib"
|
||||||
installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared", GOOS, GOARCH))
|
|
||||||
case "windows":
|
case "windows":
|
||||||
libSuffix = "dll"
|
libSuffix = "dll"
|
||||||
default:
|
default:
|
||||||
libSuffix = "so"
|
libSuffix = "so"
|
||||||
|
installdir = path.Join("pkg", fmt.Sprintf("%s_%s_testcshared_shared", GOOS, GOARCH))
|
||||||
}
|
}
|
||||||
|
|
||||||
androiddir = fmt.Sprintf("/data/local/tmp/testcshared-%d", os.Getpid())
|
androiddir = fmt.Sprintf("/data/local/tmp/testcshared-%d", os.Getpid())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue