fix integrity of go builds
@@ -3255,6 +3255,16 @@ module GO_LIBRARY: GO_BASE_UNIT {
.GLOBAL=GO_LDFLAGS
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"}
+ }
+ otherwise {
+ # Do nothing
+ }
}
module GO_PROGRAM: GO_BASE_UNIT {
