From 1d3a0d78b554813e543f751905d2a4843bad1a7c Mon Sep 17 00:00:00 2001 From: gongyuhang Date: Mon, 22 May 2023 07:36:29 +0000 Subject: [PATCH] Seperate compiler tests from ark_unittest for linux-x86 Issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/I72BDC Test: test with targets of cpu "x86" Signed-off-by: gongyuhang Change-Id: I0eca12491cef9d08ea0106f58cca6576918f9deb --- BUILD.gn | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 9213be740b..06a45d1552 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -139,9 +139,11 @@ group("ark_unittest") { "//arkcompiler/ets_runtime/ecmascript/ts_types/tests:host_unittest", ] if (!run_with_asan) { - deps += [ - "//arkcompiler/ets_runtime/ecmascript/compiler/tests:host_unittest", - ] + if (!(current_os == "linux" && current_cpu == "x86")) { + deps += [ + "//arkcompiler/ets_runtime/ecmascript/compiler/tests:host_unittest", + ] + } } } } @@ -446,6 +448,9 @@ config("ark_jsruntime_common_config") { ] } else if (current_cpu == "x86") { defines += [ "PANDA_TARGET_X86" ] + if (current_os == "linux") { + defines += [ "PANDA_TARGET_32" ] + } } else if (current_cpu == "amd64" || current_cpu == "x64" || current_cpu == "x86_64") { defines += [ -- Gitee