[PATCH] D97741: [clang+lld] Pass -platform_version args to ld64.lld
Jez Ng via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 1 15:57:30 PST 2021
int3 created this revision.
int3 added reviewers: lld-macho, thakis.
Herald added subscribers: steven_wu, hiraditya.
int3 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Now that ld64.lld points to the new Darwin backend, we can pass it the newer
`-platform_version` flag.
Most of the changes were originally in D95204: [lld-macho] Switch default to new Darwin backend <https://reviews.llvm.org/D95204>, but I backed them out due to
test failures on builds which have `CLANG_DEFAULT_LINKER=lld`. The tests are
properly updated in this diff. @thakis, want to have a second look to make sure
things make sense? I haven't worked with clang-driver code much.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97741
Files:
clang/lib/Driver/ToolChain.cpp
clang/test/Driver/Inputs/lld/ld64.lld.darwinnew
clang/test/Driver/Inputs/lld/ld64.lld.darwinold
clang/test/Driver/darwin-infer-simulator-sdkroot.c
clang/test/Driver/darwin-ld-demangle-lld.c
clang/test/Driver/darwin-ld-lto.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-sdkroot.c
clang/test/Driver/target-triple-deployment.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97741.327308.patch
Type: text/x-patch
Size: 16158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210301/3d7c1a64/attachment.bin>
More information about the cfe-commits
mailing list