diff options
author | Egor Chesakov <Egor.Chesakov@microsoft.com> | 2019-01-09 15:18:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-09 15:18:47 -0800 |
commit | fe5f8d64ae098900eb6bd8b83bf19a7e60e06270 (patch) | |
tree | 8e1498a19f51a8b38192508238f87d6a91a78e95 /configurecompiler.cmake | |
parent | 9b3ace68d678b52ccff163fdcf1332be20ecd17f (diff) | |
download | coreclr-fe5f8d64ae098900eb6bd8b83bf19a7e60e06270.tar.gz coreclr-fe5f8d64ae098900eb6bd8b83bf19a7e60e06270.tar.bz2 coreclr-fe5f8d64ae098900eb6bd8b83bf19a7e60e06270.zip |
Specify the minimum supported version of macOS (#21816)
* Pass the minimum supported version of macOS option to both compile and link stages in configurecompiler.cmake
* Enable OSX.1012.Amd64.* open and internal queues and add OSX.1014.Amd64 queue in eng/platform-matrix.yml
Diffstat (limited to 'configurecompiler.cmake')
-rw-r--r-- | configurecompiler.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configurecompiler.cmake b/configurecompiler.cmake index d3c91115e2..371e6e0a7c 100644 --- a/configurecompiler.cmake +++ b/configurecompiler.cmake @@ -475,6 +475,14 @@ if (CLR_CMAKE_PLATFORM_UNIX) # Some architectures (e.g., ARM) assume char type is unsigned while CoreCLR assumes char is signed # as x64 does. It has been causing issues in ARM (https://github.com/dotnet/coreclr/issues/4746) add_compile_options(-fsigned-char) + + # Specify the minimum supported version of macOS + if(CLR_CMAKE_PLATFORM_DARWIN) + set(MACOS_VERSION_MIN_FLAGS "-mmacosx-version-min=10.12") + add_compile_options("${MACOS_VERSION_MIN_FLAGS}") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MACOS_VERSION_MIN_FLAGS}") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${MACOS_VERSION_MIN_FLAGS}") + endif(CLR_CMAKE_PLATFORM_DARWIN) endif(CLR_CMAKE_PLATFORM_UNIX) if(CLR_CMAKE_PLATFORM_UNIX_ARM) |