aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2022-08-05 13:26:24 -0700
committerTom Stellard <tstellar@redhat.com>2022-08-08 12:37:55 -0700
commit8160d4a2a9518696ca151fd0315769fceb022e0d (patch)
tree763129c6efb64f6b7d6ff5d7e055645fe00698bc
parent22dc722d6d7c2303865735eaad457ed2f419074a (diff)
downloadllvm-8160d4a2a9518696ca151fd0315769fceb022e0d.zip
llvm-8160d4a2a9518696ca151fd0315769fceb022e0d.tar.gz
llvm-8160d4a2a9518696ca151fd0315769fceb022e0d.tar.bz2
[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)
-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 ea4e5b0..32005ee 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