Add manually overriding of the darwin SDK version
authorValentin Churavy <v.churavy@gmail.com>
Tue, 31 Mar 2020 16:48:59 +0000 (12:48 -0400)
committerValentin Churavy <v.churavy@gmail.com>
Tue, 31 Mar 2020 16:54:56 +0000 (12:54 -0400)
commitcba15d1b5c5416402ca47ceec2acbbc62f760228
tree7bd0142d24aaac3eed58b5f37d6d21cb3f0b9457
parenta76e68c9704fb5b3faf25bb8d51e405b5310ff08
Add manually overriding of the darwin SDK version

Summary:
When doing cross-compilation from Linux to MacOS we don't have
access to have access to `xcodebuild` and therefore need a way
to set the SDK version from the outside.

Fixes https://reviews.llvm.org/D68292#1853594 for me.

Reviewers: delcypher, yln

Reviewed By: delcypher

Subscribers: #julialang, mgorny, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D77026
compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake