[PATCH] D71579: [driver][darwin] Pass -platform_version flag to the linker instead of the -<platform>_version_min flag
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 16 15:57:17 PST 2019
arphaman created this revision.
arphaman added reviewers: steven_wu, dexonsmith.
Herald added subscribers: llvm-commits, ributzka, jkorous.
Herald added projects: clang, LLVM.
In Xcode 11, ld added a new flag called `-platform_version` that can be used instead of the old `-<platform>_version_min` flags. The new flag allows Clang to pass the SDK version from the driver to the linker.
This patch adopts the new `-platform_version` flag in Clang, and starts using it by default, unless a linker version < 520 is passed to the driver.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71579
Files:
clang/lib/Driver/ToolChains/Darwin.cpp
clang/lib/Driver/ToolChains/Darwin.h
clang/test/Driver/Inputs/WatchOS6.0.sdk/SDKSettings.json
clang/test/Driver/Inputs/iPhoneOS13.0.sdk/SDKSettings.json
clang/test/Driver/darwin-infer-simulator-sdkroot.c
clang/test/Driver/darwin-ld-platform-version-ios.c
clang/test/Driver/darwin-ld-platform-version-macos.c
clang/test/Driver/darwin-ld-platform-version-tvos.c
clang/test/Driver/darwin-ld-platform-version-watchos.c
clang/test/Driver/darwin-ld.c
clang/test/Driver/darwin-sdkroot.c
clang/test/Driver/target-triple-deployment.c
llvm/include/llvm/Support/VersionTuple.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71579.234178.patch
Type: text/x-patch
Size: 22331 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191216/9b9730d6/attachment-0001.bin>
More information about the cfe-commits
mailing list