From 3653d1ebd627805f94ff24c151517a4a9a17b066 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 9 Jul 2024 14:19:27 -0700 Subject: [PATCH] Limit set of rtsan OSes --- compiler-rt/cmake/config-ix.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake index 1130f9f721df4c..4520d1aae9ef6b 100644 --- a/compiler-rt/cmake/config-ix.cmake +++ b/compiler-rt/cmake/config-ix.cmake @@ -751,7 +751,8 @@ else() set(COMPILER_RT_HAS_ASAN FALSE) endif() -if (COMPILER_RT_HAS_SANITIZER_COMMON AND RTSAN_SUPPORTED_ARCH) +if (COMPILER_RT_HAS_SANITIZER_COMMON AND RTSAN_SUPPORTED_ARCH AND + OS_NAME MATCHES "Android|Darwin|Linux|NetBSD") set(COMPILER_RT_HAS_RTSAN TRUE) else() set(COMPILER_RT_HAS_RTSAN FALSE)