[clang][driver][darwin] use the deployment target version as the SDK version
authorAlex Lorenz <arphaman@gmail.com>
Sat, 1 May 2021 01:50:07 +0000 (18:50 -0700)
committerAlex Lorenz <arphaman@gmail.com>
Sat, 1 May 2021 01:54:02 +0000 (18:54 -0700)
commit8fc5f07fc0aee95ff9f79e91035d115690177dc1
tree6ba9258957af8e7c1862843f5e3bf20d62d392e1
parentbfd60b36f825c299971bb0c2bf973031e2e0fc09
[clang][driver][darwin] use the deployment target version as the SDK version
when passing -platform_version to the linker

The use of a valid SDK version is preferred over an empty SDK version
(0.0.0) as the system's runtime might expect the linked binary to contain
a valid SDK version in order for the binary to work correctly

rdar://66795188
clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/Driver/darwin-ld-platform-version-macos.c