Add build option for fuzz and bugfix build error when enable run_with_asan

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8OESN

Signed-off-by: chenjx-huawei <chenjingxiang1@huawei.com>
Change-Id: I298b7954c837aa839bc7d958b2e1dde6facf3511
This commit is contained in:
chenjx-huawei 2023-12-14 16:10:15 +08:00
parent 3caf73f10f
commit 964cf810d9
2 changed files with 23 additions and 20 deletions

View File

@ -156,30 +156,27 @@ group("ark_unittest") {
}
}
if (!run_with_asan) {
_builtins_dts_path_ =
rebase_path("./ecmascript/ts_types/lib_ark_builtins.d.ts")
_builtins_dts_path_ = rebase_path("./ecmascript/ts_types/lib_ark_builtins.d.ts")
_es2abc_builtins_d_abc_path_ =
"$target_out_dir/lib_ark_builtins/es2abc/lib_ark_builtins.d.abc"
_es2abc_builtins_d_abc_path_ =
"$target_out_dir/lib_ark_builtins/es2abc/lib_ark_builtins.d.abc"
es2abc_gen_abc("es2abc_gen_builtins_d_abc") {
extra_visibility = [ "*" ]
es2abc_gen_abc("es2abc_gen_builtins_d_abc") {
extra_visibility = [ "*" ]
# extra_dependencies = _deps_
src_js = rebase_path(_builtins_dts_path_)
dst_file = rebase_path(_es2abc_builtins_d_abc_path_)
extension = "ts"
extra_args = [
"--module",
"--merge-abc",
"--type-extractor",
"--type-dts-builtin",
]
# extra_dependencies = _deps_
src_js = rebase_path(_builtins_dts_path_)
dst_file = rebase_path(_es2abc_builtins_d_abc_path_)
extension = "ts"
extra_args = [
"--module",
"--merge-abc",
"--type-extractor",
"--type-dts-builtin",
]
in_puts = [ _builtins_dts_path_ ]
out_puts = [ _es2abc_builtins_d_abc_path_ ]
}
in_puts = [ _builtins_dts_path_ ]
out_puts = [ _es2abc_builtins_d_abc_path_ ]
}
group("ark_runtime_host_unittest") {

View File

@ -21,6 +21,9 @@ declare_args() {
enable_ark_intl = true
run_regress_test = false
# If true, enable fuzz option. Default false.
enable_fuzz_option = false
TARGET = "x86_64"
HOST_ARCH = 64
}
@ -46,6 +49,9 @@ hilog_root = "//base/hiviewdfx/hilog/interfaces/native/innerkits"
qos_root = "//foundation/resourceschedule/qos_manager"
compile_llvm_online = false
run_with_asan = false
if (enable_fuzz_option) {
run_with_asan = true
}
enable_leak_check = false
enable_cow_array = true
enable_coverage = false