[compiler-rt] 9ec4ddd - [Sanitizer][Darwin] Support OS versions before DRIVERKIT

Keith Smiley via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 5 15:39:30 PDT 2022


Author: Keith Smiley
Date: 2022-08-05T15:39:05-07:00
New Revision: 9ec4ddd224f400e2ec309fa513904525c059cc1e

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

LOG: [Sanitizer][Darwin] Support OS versions before DRIVERKIT

Fixes https://github.com/llvm/llvm-project/issues/56960

Differential Revision: https://reviews.llvm.org/D131288

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_platform.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
index ea4e5b015d116..32005eef08cd5 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -90,7 +90,7 @@
 #  else
 #    define SANITIZER_IOSSIM 0
 #  endif
-#  if TARGET_OS_DRIVERKIT
+#  if defined(TARGET_OS_DRIVERKIT) && TARGET_OS_DRIVERKIT
 #    define SANITIZER_DRIVERKIT 1
 #  else
 #    define SANITIZER_DRIVERKIT 0


        


More information about the llvm-commits mailing list