From 55124fd9703a1681f4c747390a838de7b64a17d2 Mon Sep 17 00:00:00 2001 From: fangting Date: Wed, 20 Aug 2025 15:38:41 +0800 Subject: [PATCH] fix asan bug Issue:#ICTV4P Signed-off-by: fangting --- BUILD.gn | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 1c732cc6..59daf33d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -100,8 +100,10 @@ config("ark_toolchain_common_config") { defines += [ "PANDA_TARGET_UNIX", "PANDA_TARGET_LINUX", - "PANDA_USE_FUTEX", ] + if (!is_asan) { + defines += [ "PANDA_USE_FUTEX" ] + } } else if (is_mingw) { cflags_cc += [ "-std=c++17", @@ -121,8 +123,10 @@ config("ark_toolchain_common_config") { defines += [ "PANDA_TARGET_ANDROID", "PANDA_TARGET_UNIX", - "PANDA_USE_FUTEX", ] + if (!is_asan) { + defines += [ "PANDA_USE_FUTEX" ] + } if (!ark_standalone_build) { defines += [ "ENABLE_ANLOG" ] } @@ -134,8 +138,10 @@ config("ark_toolchain_common_config") { } else { defines += [ "PANDA_TARGET_UNIX", - "PANDA_USE_FUTEX", ] + if (!is_asan) { + defines += [ "PANDA_USE_FUTEX" ] + } if (!is_standard_system && (current_cpu != "arm" || is_wearable_product)) { defines += [ "PANDA_TARGET_MOBILE" ] } -- Gitee