From 37d0033910e71e9dc606cbba043dc838a468f8d4 Mon Sep 17 00:00:00 2001 From: lordwithcc Date: Tue, 1 Nov 2022 17:21:22 +0800 Subject: [PATCH] Add UT for standalone_build Signed-off-by: lordwithcc --- build/compile_script/ark.py | 3 ++- build/config/BUILD.gn | 1 - build/core/gn/BUILD.gn | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build/compile_script/ark.py b/build/compile_script/ark.py index 44c973ad..ca2303ff 100644 --- a/build/compile_script/ark.py +++ b/build/compile_script/ark.py @@ -29,7 +29,7 @@ ARCHES = ["x64", "arm", "arm64"] DEFAULT_ARCHES = "x64" MODES = ["release", "debug"] DEFAULT_MODES = "release" -TARGETS = ["ets_runtime", "ets_frontend", "default", "all"] +TARGETS = ["ets_runtime", "ets_frontend", "default", "unittest_packages", "all"] DEFAULT_TARGETS = "default" TARGETS_TEST = ["test262"] @@ -52,6 +52,7 @@ for example , python ark.py x64.release clean: clear your data in output dir [test] test262: run test262 + unittest_packages: run unittest """ def PrintHelp(): diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn index e119a21c..d04d2ec2 100644 --- a/build/config/BUILD.gn +++ b/build/config/BUILD.gn @@ -27,7 +27,6 @@ config("executable_ldconfig") { ldflags = [ "-Wl,-rpath=\$ORIGIN/", "-Wl,-rpath-link=", - "-pie", ] if (current_os == "linux") { ldflags += [ "-lpthread" ] diff --git a/build/core/gn/BUILD.gn b/build/core/gn/BUILD.gn index a9a93187..12305040 100644 --- a/build/core/gn/BUILD.gn +++ b/build/core/gn/BUILD.gn @@ -42,6 +42,12 @@ group("linux_packages") { } } +group("unittest_packages") { + if (host_os != "mac") { + deps = [ "//arkcompiler/ets_runtime:ark_js_unittest" ] + } +} + group("ets_runtime") { deps = [ "//arkcompiler/ets_runtime:ark_js_packages" ] } -- Gitee