diff --git a/BUILD.gn b/BUILD.gn index 1c732cc6f44713262c3e955ecfd5af4726e5dadf..59daf33d4bb51d7e993fc7da9836f0c182787bfc 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" ] }