fix integrity of GO tests with CGO
@@ -3519,6 +3519,13 @@ module GO_BASE_UNIT {
}
_GO_PROCESS_SRCS()
+
+ when ($HOST_OS_DARWIN) {
+ GO_TOOLCHAIN_ENV += ${env:"CC=clang"} ${env:"PATH=$(DEFAULT_DARWIN_X86_64)/bin:$OS_SDK_ROOT_RESOURCE_GLOBAL/usr/bin"}
+ }
+ elsewhen ($HOST_OS_LINUX) {
+ GO_TOOLCHAIN_ENV += ${env:"CC=clang"} ${env:"PATH=$(DEFAULT_LINUX_X86_64)/bin:$OS_SDK_ROOT_RESOURCE_GLOBAL/usr/bin"}
+ }
}
module GO_LIBRARY: GO_BASE_UNIT {
@@ -3527,13 +3534,6 @@ module GO_LIBRARY: GO_BASE_UNIT {
SET(MODULE_TYPE LIBRARY)
MODULE_SUFFIX=.a
-
- when ($HOST_OS_DARWIN) {
- GO_TOOLCHAIN_ENV += ${env:"CC=clang"} ${env:"PATH=$(DEFAULT_DARWIN_X86_64)/bin:$OS_SDK_ROOT_RESOURCE_GLOBAL/usr/bin"}
- }
- elsewhen ($HOST_OS_LINUX) {
- GO_TOOLCHAIN_ENV += ${env:"CC=clang"} ${env:"PATH=$(DEFAULT_LINUX_X86_64)/bin:$OS_SDK_ROOT_RESOURCE_GLOBAL/usr/bin"}
- }
}
module GO_PROGRAM: GO_BASE_UNIT {
