mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-23 06:50:12 +00:00
hiebpf仅root编译
Signed-off-by: ganchuantao <ganchuantao1@huawei.com> Change-Id: Ic4b4b0ff6498a025deed0a5b1d66a71763075e1b
This commit is contained in:
parent
1c4d5625dd
commit
2fee4f55a2
@ -147,10 +147,12 @@ ohos_executable("hiebpf") {
|
||||
group("hiebpf_tool") {
|
||||
if (current_toolchain == "//build/toolchain/ohos:ohos_clang_arm64") {
|
||||
if (!is_asan && !is_tsan && use_musl) {
|
||||
deps = [
|
||||
":hiebpf",
|
||||
":hiebpf.bpf",
|
||||
]
|
||||
if (build_variant == "root") {
|
||||
deps = [
|
||||
":hiebpf",
|
||||
":hiebpf.bpf",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +64,9 @@ ohos_unittest("hiebpf_ut") {
|
||||
group("unittest") {
|
||||
testonly = true
|
||||
if (target_cpu == "arm64" && !is_asan && use_musl) {
|
||||
deps = [ ":hiebpf_ut" ]
|
||||
if (build_variant == "root") {
|
||||
deps = [ ":hiebpf_ut" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user