diff --git a/services/init/standard/BUILD.gn b/services/init/standard/BUILD.gn index 03c6b9a687735bad44753dd5565dc0e9cb21841b..294d2af13a40fe9481f9c92dc670d16bc7eba7f0 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" ] }