File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ if(APPLE)
468
468
469
469
set (DEFAULT_SANITIZER_MIN_OSX_VERSION 10.10)
470
470
set (DARWIN_osx_MIN_VER_FLAG "-mmacosx-version-min" )
471
- if (SANITIZER_MIN_OSX_VERSION STREQUAL "" )
471
+ if (NOT SANITIZER_MIN_OSX_VERSION )
472
472
string (REGEX MATCH "${DARWIN_osx_MIN_VER_FLAG} =([.0-9]+)"
473
473
MACOSX_VERSION_MIN_FLAG "${CMAKE_CXX_FLAGS} " )
474
474
if (MACOSX_VERSION_MIN_FLAG)
@@ -479,6 +479,8 @@ if(APPLE)
479
479
set (MIN_OSX_VERSION ${DEFAULT_SANITIZER_MIN_OSX_VERSION} )
480
480
endif ()
481
481
482
+ # Note: In order to target x86_64h on OS X the minimum deployment target must
483
+ # be 10.8 or higher.
482
484
if (MIN_OSX_VERSION VERSION_LESS "10.7" )
483
485
message (FATAL_ERROR "macOS deployment target '${SANITIZER_MIN_OSX_VERSION} ' is too old." )
484
486
endif ()
@@ -488,7 +490,7 @@ if(APPLE)
488
490
endif ()
489
491
490
492
set (SANITIZER_MIN_OSX_VERSION "${MIN_OSX_VERSION} " CACHE STRING
491
- "Minimum OS X version to target (e.g. 10.10) for sanitizers." FORCE )
493
+ "Minimum OS X version to target (e.g. 10.10) for sanitizers." )
492
494
endif ()
493
495
494
496
# We're setting the flag manually for each target OS
You can’t perform that action at this time.
0 commit comments