Set CMAKE_OSX_DEPLOYMENT_TARGET for all Mono AOT compilers on macOS (#57507)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 17 Aug 2021 01:28:31 +0000 (03:28 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Aug 2021 01:28:31 +0000 (20:28 -0500)
commit24e921280982eaa01df204cb231cdb18c2ed3ecc
tree440b3b0b1878fa91b81725f4ea536b719c322d64
parent380cfc9f3b4e1dab3266f44bb178ec456a9ae8a6
Set CMAKE_OSX_DEPLOYMENT_TARGET for all Mono AOT compilers on macOS (#57507)

* Set CMAKE_OSX_DEPLOYMENT_TARGET for all Mono AOT compilers on macOS

Not just if we're targetting iOS/tvOS/macOS since the AOT compiler for WASM or Android can run on macOS too.

Fixes https://github.com/dotnet/runtime/issues/57431

* Use RealTargetOS if it's available
src/mono/mono.proj