[PATCH] D92037: clang: Pass -platform-version to new MachO LLD
Nico Weber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 08:02:33 PST 2020
thakis created this revision.
thakis added a reviewer: hans.
thakis requested review of this revision.
New MachO LLD doesn't implement the old -macos_version_min (etc)
flags, but it understands the modern platform_version flag.
So make the clang driver pass that when using new MachO LLD.
Also, while here, don't pass -lto_library to LLD, since it
links in LTO libraries statically (which it can because it's
versioned alongside clang).
https://reviews.llvm.org/D92037
Files:
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/Darwin.cpp
clang/lib/Driver/ToolChains/Darwin.h
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92037.307365.patch
Type: text/x-patch
Size: 14383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201124/74934c49/attachment-0001.bin>
More information about the cfe-commits
mailing list