diff --git a/common/log_wrapper.h b/common/log_wrapper.h index 47ce374993c86d145203d5a1919a6f110f764851..2263a80b4f852f85d1f31dcd98a0d66c87acb2f1 100644 --- a/common/log_wrapper.h +++ b/common/log_wrapper.h @@ -17,6 +17,7 @@ #define ARKCOMPILER_TOOLCHAIN_COMMON_LOG_WRAPPER_H #include "common/macros.h" +#include "stdint.h" #if defined(ENABLE_HILOG) #if defined(__clang__) @@ -25,6 +26,7 @@ #pragma GCC diagnostic ignored "-Wgnu-zero-variadic-macro-arguments" #endif #include "hilog/log.h" +__attribute__((weak)) uint8_t __build_id_start = 0; #endif #undef LOG_DOMAIN #define LOG_DOMAIN 0xD003F00