set default allocator for GO programs build with MUSL
@@ -5939,7 +5939,12 @@ macro _GO_GRPC_GATEWAY_SWAGGER_SRCS(Files...) {
PEERDIR(vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options)
}
+when ($MUSL == "yes") {
+ _GO_DEFAULT_ALLOCATOR=$DEFAULT_ALLOCATOR
+}
+otherwise {
_GO_DEFAULT_ALLOCATOR=FAKE
+}
### @usage _GO_BASE_UNIT # internal
###
