[darwin][driver] isMacosxVersionLT should check against the minimum supported OS...
authorAlex Lorenz <arphaman@gmail.com>
Mon, 29 Jun 2020 17:23:16 +0000 (10:23 -0700)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 29 Jun 2020 19:21:54 +0000 (12:21 -0700)
commitf7a14514ee63dc2ab9558c50254efb8ac2ad7cc6
tree7bf0fc658e264569758ec99f60e1287e3260fdea
parente7a1c2a4959a8543364d9d46b32351ef45a84e18
[darwin][driver] isMacosxVersionLT should check against the minimum supported OS version

This change ensures that the Darwin driver doesn't add unsupported libraries to the link
invocation when linking the Apple Silicon macOS slice.

rdar://61011136

Differential Revision: https://reviews.llvm.org/D82696
clang/lib/Driver/ToolChains/Darwin.h
clang/test/Driver/macos-apple-silicon-slice-link-libs.cpp [new file with mode: 0644]
llvm/include/llvm/ADT/Triple.h
llvm/lib/Support/Triple.cpp