aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2022-08-05 13:26:24 -0700
committerKeith Smiley <keithbsmiley@gmail.com>2022-08-05 15:39:05 -0700
commit9ec4ddd224f400e2ec309fa513904525c059cc1e (patch)
tree8acb9578c62b1909ff5a89df00b094590c14f6b2
parent28d05d672300e51f53c73fe9a4bd053e73844247 (diff)
[Sanitizer][Darwin] Support OS versions before DRIVERKIT
Fixes https://github.com/llvm/llvm-project/issues/56960 Differential Revision: https://reviews.llvm.org/D131288
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_platform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
index ea4e5b015d11..32005eef08cd 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