diff --git a/BUILD.gn b/BUILD.gn index 75dfde376f2e28dfb45c474676f064197c85817e..9d466b8435a301664773ad277aa758128cd033c5 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -397,7 +397,7 @@ config("ark_jsruntime_common_config") { defines = [ "PANDA_ENABLE_LTO" ] - if (is_ohos && current_cpu == "arm64") { + if (is_ohos) { defines += [ "ENABLE_COLD_STARTUP_GC_POLICY" ] } if (ets_runtime_enable_cmc_gc) { diff --git a/common_components/BUILD.gn b/common_components/BUILD.gn index 8ff74f7d01027251849a02a8553cb4b6e97fcb81..c0f867d4c4bbe134e611410a335dc284ddb533ea 100755 --- a/common_components/BUILD.gn +++ b/common_components/BUILD.gn @@ -139,7 +139,7 @@ config("common_components_common_config") { if (ets_runtime_enable_cmc_gc) { defines += [ "USE_CMC_GC" ] - if (is_ohos && current_cpu == "arm64") { + if (is_ohos) { defines += [ "ENABLE_COLD_STARTUP_GC_POLICY" ] } } else {