From fe5f8d64ae098900eb6bd8b83bf19a7e60e06270 Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Wed, 9 Jan 2019 15:18:47 -0800 Subject: 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 --- configurecompiler.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configurecompiler.cmake') 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) -- cgit v1.2.3