From ab0db4378e9c03afde810752f84e55be43e67462 Mon Sep 17 00:00:00 2001 From: liangxinyan123 Date: Tue, 4 Mar 2025 20:59:42 +0800 Subject: [PATCH] =?UTF-8?q?linux=20arm64=E7=BC=96=E8=AF=91sdk-hilog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liangxinyan123 --- interfaces/js/kits/napi/BUILD.gn | 16 ++++++++++---- interfaces/native/innerkits/BUILD.gn | 32 +++++++++++++++++++++------- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/interfaces/js/kits/napi/BUILD.gn b/interfaces/js/kits/napi/BUILD.gn index 198c340..16b4d00 100644 --- a/interfaces/js/kits/napi/BUILD.gn +++ b/interfaces/js/kits/napi/BUILD.gn @@ -65,10 +65,18 @@ config("libhilog_js_cfg") { } ohos_shared_library("libhilognapi") { - sanitize = { - cfi = true - cfi_cross_dso = true - debug = false + if (host_os == "linux" && host_cpu == "arm64") { + sanitize = { + cfi = false + cfi_cross_dso = false + debug = false + } + } else { + sanitize = { + cfi = true + cfi_cross_dso = true + debug = false + } } deps = [ ":libhilognapi_src" ] diff --git a/interfaces/native/innerkits/BUILD.gn b/interfaces/native/innerkits/BUILD.gn index 26c638b..de3448e 100644 --- a/interfaces/native/innerkits/BUILD.gn +++ b/interfaces/native/innerkits/BUILD.gn @@ -49,10 +49,18 @@ if (is_mingw || is_mac || is_linux || is_ohos) { "system", "updater", ] - sanitize = { - cfi = true - cfi_cross_dso = true - debug = false + if (host_os == "linux" && host_cpu == "arm64") { + sanitize = { + cfi = false + cfi_cross_dso = false + debug = false + } + } else { + sanitize = { + cfi = true + cfi_cross_dso = true + debug = false + } } } @@ -73,10 +81,18 @@ template("libhilog") { } } else { ohos_shared_library(target_name) { - sanitize = { - cfi = true - cfi_cross_dso = true - debug = false + if (host_os == "linux" && host_cpu == "arm64") { + sanitize = { + cfi = false + cfi_cross_dso = false + debug = false + } + } else { + sanitize = { + cfi = true + cfi_cross_dso = true + debug = false + } } public_configs = [ ":libhilog_pub_config" ] deps = [ "../../../frameworks/libhilog:libhilog_source_$platform" ] -- Gitee