From ffa11430fb523dc7f0bf48608d2a9ef8c72d601c Mon Sep 17 00:00:00 2001 From: stesen Date: Wed, 23 Nov 2022 15:40:36 +0800 Subject: [PATCH] fixed 46c5269 from https://gitee.com/stesen/startup_init_lite/pulls/1550 fix profiler deps with global_parts_info Signed-off-by: stesen Change-Id: Icb2b283304dfbfcedf71bdacdf0d12a9e9bf1799 --- services/init/standard/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/init/standard/BUILD.gn b/services/init/standard/BUILD.gn index bf63ea3e..706fb0f0 100644 --- a/services/init/standard/BUILD.gn +++ b/services/init/standard/BUILD.gn @@ -130,7 +130,7 @@ ohos_executable("init") { if (!enable_ramdisk) { defines += [ "DISABLE_INIT_TWO_STAGES" ] } - if (support_jsapi) { + if (defined(global_parts_info.developtools_profiler)) { defines += [ "SUPPORT_PROFILER_HIDEBUG" ] external_deps = [ "profiler:libhidebug_init" ] } -- GitLab