diff --git a/config/ohos/BUILD.gn b/config/ohos/BUILD.gn index 69acde1e40a384838ca7fb94e23e2cd64959352f..ffde94835f2fb4f0d4c5f18991a8ebf827d96bc4 100755 --- a/config/ohos/BUILD.gn +++ b/config/ohos/BUILD.gn @@ -26,6 +26,7 @@ config("compiler") { defines += [ "__MUSL__", + "LINUX_MUSL_SUPPORTED", "_LIBCPP_HAS_MUSL_LIBC", "__BUILD_LINUX_WITH_CLANG", ] diff --git a/lite/config/BUILD.gn b/lite/config/BUILD.gn index 9154923c4bfc8f64575dead71bf36060cd17dd92..115992985c8069ec6f8ab2703478d2ae05e1e94f 100644 --- a/lite/config/BUILD.gn +++ b/lite/config/BUILD.gn @@ -46,6 +46,7 @@ config("kernel_macros") { defines = [ "__linux__", "__LINUX__", + "LINUX_MUSL_SUPPORTED", ] } }