Enable bcopt_type_adapter_unit_test for windows and mac platforms

Enable bcopt_type_adapter_unit_test for windows and mac platforms

Issue:#I5JOSL

Signed-off-by: qiuyu <qiuyu22@huawei.com>
Change-Id: I069c142168b5f4140e777f2a86be472b36df1bae
This commit is contained in:
qiuyu 2022-07-29 11:44:48 +08:00
parent d5d0ad6618
commit 5e653e11f7

View File

@ -281,5 +281,16 @@ merge_yamls("merge_runtime_options_yamls") {
}
group("bcopt_type_adapter_unit_test") {
deps = [ "$ark_root/bytecode_optimizer/tests:bcopt_type_adapter_unit_test(//build/toolchain/linux:clang_x64)" ]
if (host_os == "mac") {
if (host_cpu == "arm64") {
deps = [ "$ark_root/bytecode_optimizer/tests:bcopt_type_adapter_unit_test(//build/toolchain/mac:clang_arm64)" ]
} else {
deps = [ "$ark_root/bytecode_optimizer/tests:bcopt_type_adapter_unit_test(//build/toolchain/mac:clang_x64)" ]
}
} else {
deps = [
"$ark_root/bytecode_optimizer/tests:bcopt_type_adapter_unit_test(//build/toolchain/linux:clang_x64)",
"$ark_root/bytecode_optimizer/tests:bcopt_type_adapter_unit_test(//build/toolchain/mingw:mingw_x86_64)",
]
}
}