mono.proj: properly pass -mmacosx-version-min to CFLAGS for OSX (#41433)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 28 Aug 2020 11:51:20 +0000 (13:51 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Aug 2020 11:51:20 +0000 (13:51 +0200)
Noticed we were missing this while looking at another PR.

src/mono/mono.proj

index ad59322..f61534e 100644 (file)
       <_MonoCXXFLAGS Include="-g" />
     </ItemGroup>
 
+    <!-- OSX specific options -->
+    <ItemGroup Condition="'$(TargetOS)' == 'OSX'">
+      <_MonoCFLAGS Include="-mmacosx-version-min=$(macOSVersionMin)" />
+      <_MonoCXXFLAGS Include="-mmacosx-version-min=$(macOSVersionMin)" />
+    </ItemGroup>
+
     <!-- We build LLVM bits for x64 Linux without C++11 ABI (CentOS 7 has libstdc++ < 5.1) -->
     <ItemGroup Condition="'$(TargetOS)' == 'Linux' and '$(MonoEnableLLVM)' == 'true' and '$(MonoLLVMUseCxx11Abi)' != 'true'">
       <_MonoCXXFLAGS Include="-D_GLIBCXX_USE_CXX11_ABI=0" />