From eb080b2c8b65a187779d8821935146c382c9f63c Mon Sep 17 00:00:00 2001 From: chenqy930 Date: Tue, 10 Jan 2023 10:24:52 +0800 Subject: [PATCH] Fix es2abc error not caught on m1 platform Issue:I69PHV Change-Id: Ie280b62a537fcb6bafab6e98d0dba4f8ef900429 Signed-off-by: chenqy930 --- es2panda/BUILD.gn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index 2fcb985b6f7..10029782aa4 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", -- Gitee