diff --git a/compiler_service/src/aot_args_handler.cpp b/compiler_service/src/aot_args_handler.cpp index e02ca22222a4ed1389f601f1e17be86d905064dc..ab2f6cee9b0ffc428022806a0df026f610a2d893 100644 --- a/compiler_service/src/aot_args_handler.cpp +++ b/compiler_service/src/aot_args_handler.cpp @@ -189,8 +189,10 @@ void AOTArgsParser::SetEnableCodeCommentBySysParam(HapArgs &hapArgs) bool AOTArgsParserBase::IsEnableStaticCompiler() { - return OHOS::system::GetBoolParameter("ark.aot.enable_static_compiler", + bool enable = OHOS::system::GetBoolParameter("ark.aot.enable_static_compiler", ARK_AOT_ENABLE_STATIC_COMPILER_DEFAULT_VALUE); + LOG_SA(INFO) << "enable static compiler switch is : " << enable; + return enable; } #endif