From 9ec4ddd224f400e2ec309fa513904525c059cc1e Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 5 Aug 2022 13:26:24 -0700 Subject: [Sanitizer][Darwin] Support OS versions before DRIVERKIT Fixes https://github.com/llvm/llvm-project/issues/56960 Differential Revision: https://reviews.llvm.org/D131288 --- compiler-rt/lib/sanitizer_common/sanitizer_platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3