diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index 2fcb985b6f75cde7ddffe35bfc8a546b3cf95437..10029782aa46d400f94caa0587a961ca39e3787d 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -377,6 +377,9 @@ action_foreach("gen_isa_headers") { ohos_static_library("es2panda_lib") { sources = es2panda_src use_exceptions = true + if (is_mac && current_cpu == "arm64") { + use_rtti = true + } configs = [ ":es2abc_config_common" ] @@ -412,6 +415,10 @@ ohos_static_library("es2panda_lib") { ohos_executable("es2panda") { use_exceptions = true + if (is_mac && current_cpu == "arm64") { + use_rtti = true + } + sources = [ "aot/main.cpp", "aot/options.cpp",