File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
compiler-rt/lib/sanitizer_common Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 526526#define SANITIZER_INTERCEPT_READLINK SI_POSIX
527527#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && \
528528 __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101000
529- #define SI_MAC_DEPLOYMENT_BELOW_10_10 1
529+ # define SI_MAC_DEPLOYMENT_BELOW_10_10 1
530530#else
531- #define SI_MAC_DEPLOYMENT_BELOW_10_10 0
531+ # define SI_MAC_DEPLOYMENT_BELOW_10_10 0
532532#endif
533533#define SANITIZER_INTERCEPT_READLINKAT \
534534 (SI_POSIX && !SI_MAC_DEPLOYMENT_BELOW_10_10)
606606// FIXME: also available from musl 1.2.5
607607#define SANITIZER_INTERCEPT_PREADV2 (SI_LINUX && __GLIBC_PREREQ(2 , 26 ))
608608#define SANITIZER_INTERCEPT_PWRITEV2 (SI_LINUX && __GLIBC_PREREQ(2 , 26 ))
609- #define SANITIZER_INTERCEPT_FREADLINK SI_MAC
609+ #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && \
610+ __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 130000
611+ #define SI_MAC_DEPLOYMENT_BELOW_13_00 1
612+ #else
613+ #define SI_MAC_DEPLOYMENT_BELOW_13_00 0
614+ #endif
615+ #define SANITIZER_INTERCEPT_FREADLINK (SI_MAC && !SI_MAC_DEPLOYMENT_BELOW_13_00)
610616
611617// This macro gives a way for downstream users to override the above
612618// interceptor macros irrespective of the platform they are on. They have
You can’t perform that action at this time.
0 commit comments