diff --git a/services/init/standard/BUILD.gn b/services/init/standard/BUILD.gn index bf63ea3ec778a6f0b72d60d5334ba34bf71010c7..706fb0f058ed03551130cf4584292917474f6b19 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" ] }