[llvm-branch-commits] [compiler-rt] 8160d4a - [Sanitizer][Darwin] Support OS versions before DRIVERKIT
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Aug 8 12:40:13 PDT 2022
Author: Keith Smiley
Date: 2022-08-08T12:37:55-07:00
New Revision: 8160d4a2a9518696ca151fd0315769fceb022e0d
URL: https://github.com/llvm/llvm-project/commit/8160d4a2a9518696ca151fd0315769fceb022e0d
DIFF: https://github.com/llvm/llvm-project/commit/8160d4a2a9518696ca151fd0315769fceb022e0d.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
(cherry picked from commit 9ec4ddd224f400e2ec309fa513904525c059cc1e)
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-branch-commits
mailing list