[darwin][driver] pass the minimum supported OS version to the linker
authorAlex Lorenz <arphaman@gmail.com>
Tue, 30 Jun 2020 01:39:26 +0000 (18:39 -0700)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 30 Jun 2020 02:03:57 +0000 (19:03 -0700)
commit6792a6077889f1ce77a3aa55b3e4fd3f1eb4333b
tree840527dce3ec1cd874bfbd33ae3f1deb1efb624a
parent5a5f5350e1cbe14eaf852d9003523c7fdb1132af
[darwin][driver] pass the minimum supported OS version to the linker
if it's newer than the target version

This change ensures that the arm64-apple-macOS slice is linked for
macOS 11 even if the deployment target is earlier than macOS 11.
clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/Driver/darwin-ld-platform-version-macos.c