Disable CGO when sanitizer is enabled.
@@ -3632,6 +3632,10 @@ macro GO_FAKE_OUTPUT(FILES...) {
CGO_ENABLED=yes
+when ($SANITIZER_TYPE && $SANITIZER_TYPE != "no") {
+ CGO_ENABLED=no
+}
+
GO_PACKAGE_VALUE=
macro GO_PACKAGE_NAME(NAME) {
SET(GO_PACKAGE_VALUE $NAME)
