提交 05dc7989 编写于 作者: Z zhengweiwei

Add js_malloc and musl coverage options

Description: Control coverage instrumentation through the existing switch macro use_clang_coverage

Issue: I6K6H8
Test: rk3568 compilation verification
Signed-off-by: Nzhengweiwei <zhengweiwei7@huawei.com>
上级 0f176f00
......@@ -85,7 +85,10 @@ template("musl_libs") {
]
config("soft_musl_config") {
configs = [ "//build/config/compiler:compiler_cpu_abi" ]
configs = [
"//build/config/compiler:compiler_cpu_abi",
"//build/config/coverage:default_coverage",
]
include_dirs = [
"${target_out_dir}/${musl_ported_dir}/arch/${musl_arch}",
......@@ -178,7 +181,7 @@ template("musl_libs") {
config("soft_hook") {
defines = []
configs = []
configs = [ "//build/config/coverage:default_coverage" ]
if (is_posix) {
configs += [ "//build/config/posix:runtime_library" ]
......@@ -213,7 +216,7 @@ template("musl_libs") {
}
config("soft_jemalloc") {
configs = []
configs = [ "//build/config/coverage:default_coverage" ]
include_dirs = [
"${target_out_dir}/${musl_ported_dir}/arch/${musl_arch}",
......@@ -813,6 +816,9 @@ template("musl_libs") {
if (!startup_init_with_param_base) {
deps += [ "//base/startup/init/services/param/base:parameterbase" ]
}
if (use_jemalloc) {
deps += [ ":soft_musl_jemalloc" ]
}
}
static_library("soft_libm") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册