diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index 9d7624aad06d1bcf4bc1ad9ae0ab76171912bc1a..2c7ba07c83b71c8d741f1650e37546396265455d 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -266,8 +266,6 @@ config("es2abc_config_src") { "./typescript", "./typescript/types", ] - - cflags = [ "-fexceptions" ] } config("es2abc_config_common") { diff --git a/ts2panda/ts2abc/BUILD.gn b/ts2panda/ts2abc/BUILD.gn index a6ee96c5ab999a41c2bc54b2fa9d5ae469e53536..015134d47bb12b3c9748a60b5531a4483d2edba2 100755 --- a/ts2panda/ts2abc/BUILD.gn +++ b/ts2panda/ts2abc/BUILD.gn @@ -51,10 +51,6 @@ config("ts2abc_config") { } } -config("flag_config") { - cflags_cc = [ "-fexceptions" ] -} - source_set("jsoncpp_set_static") { sources = [ "$ark_third_party_root/jsoncpp/src/lib_json/json_reader.cpp", @@ -62,7 +58,6 @@ source_set("jsoncpp_set_static") { "$ark_third_party_root/jsoncpp/src/lib_json/json_writer.cpp", ] public_configs = [ "$jsoncpp_root:jsoncpp_config" ] - public_configs += [ ":flag_config" ] include_dirs = [ "$jsoncpp_root/include", "$jsoncpp_root/include/json/",