[all-commits] [llvm/llvm-project] 25ce33: [driver][darwin] Pass -platform_version flag to th...
Alex Lorenz via All-commits
all-commits at lists.llvm.org
Tue Dec 17 10:28:17 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 25ce33a6e4f3b13732c0f851e68390dc2acb9123
https://github.com/llvm/llvm-project/commit/25ce33a6e4f3b13732c0f851e68390dc2acb9123
Author: Alex Lorenz <arphaman at gmail.com>
Date: 2019-12-17 (Tue, 17 Dec 2019)
Changed paths:
M clang/lib/Driver/ToolChains/Darwin.cpp
M clang/lib/Driver/ToolChains/Darwin.h
A clang/test/Driver/Inputs/WatchOS6.0.sdk/SDKSettings.json
A clang/test/Driver/Inputs/iPhoneOS13.0.sdk/SDKSettings.json
M clang/test/Driver/darwin-infer-simulator-sdkroot.c
A clang/test/Driver/darwin-ld-platform-version-ios.c
A clang/test/Driver/darwin-ld-platform-version-macos.c
A clang/test/Driver/darwin-ld-platform-version-tvos.c
A clang/test/Driver/darwin-ld-platform-version-watchos.c
M clang/test/Driver/darwin-ld.c
M clang/test/Driver/darwin-sdkroot.c
M clang/test/Driver/target-triple-deployment.c
M llvm/include/llvm/Support/VersionTuple.h
Log Message:
-----------
[driver][darwin] Pass -platform_version flag to the linker instead of the -<platform>_version_min flag
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.
Differential Revision: https://reviews.llvm.org/D71579
More information about the All-commits
mailing list