[compiler-rt] ed09637 - [NFC] Move HWASAN_SUPPORTED_ARCH close to COMPILER_RT_HAS_ASAN

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 16:04:32 PDT 2024


Author: Vitaly Buka
Date: 2024-07-10T16:04:00-07:00
New Revision: ed09637c496dee37b23d73040dff6f7a4805c53a

URL: https://github.com/llvm/llvm-project/commit/ed09637c496dee37b23d73040dff6f7a4805c53a
DIFF: https://github.com/llvm/llvm-project/commit/ed09637c496dee37b23d73040dff6f7a4805c53a.diff

LOG: [NFC] Move HWASAN_SUPPORTED_ARCH close to COMPILER_RT_HAS_ASAN

Added: 
    

Modified: 
    compiler-rt/cmake/config-ix.cmake

Removed: 
    


################################################################################
diff  --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake
index 1833f0776ec24..96726a654ba06 100644
--- a/compiler-rt/cmake/config-ix.cmake
+++ b/compiler-rt/cmake/config-ix.cmake
@@ -751,6 +751,13 @@ else()
   set(COMPILER_RT_HAS_ASAN FALSE)
 endif()
 
+if (COMPILER_RT_HAS_SANITIZER_COMMON AND HWASAN_SUPPORTED_ARCH AND
+    OS_NAME MATCHES "Linux|Android|Fuchsia")
+  set(COMPILER_RT_HAS_HWASAN TRUE)
+else()
+  set(COMPILER_RT_HAS_HWASAN FALSE)
+endif()
+
 if (COMPILER_RT_HAS_SANITIZER_COMMON AND RTSAN_SUPPORTED_ARCH AND
     OS_NAME MATCHES "Darwin|Linux")
   set(COMPILER_RT_HAS_RTSAN TRUE)
@@ -787,13 +794,6 @@ else()
   set(COMPILER_RT_HAS_MSAN FALSE)
 endif()
 
-if (COMPILER_RT_HAS_SANITIZER_COMMON AND HWASAN_SUPPORTED_ARCH AND
-    OS_NAME MATCHES "Linux|Android|Fuchsia")
-  set(COMPILER_RT_HAS_HWASAN TRUE)
-else()
-  set(COMPILER_RT_HAS_HWASAN FALSE)
-endif()
-
 if (COMPILER_RT_HAS_SANITIZER_COMMON AND MEMPROF_SUPPORTED_ARCH AND
     OS_NAME MATCHES "Linux")
   set(COMPILER_RT_HAS_MEMPROF TRUE)


        


More information about the llvm-commits mailing list