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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits