[clang+lld] Pass -platform_version args to ld64.lldFix regression where we aren't passing `-platform_version` to new ld64.lld after {D95204}.Most of the changes were originally in D95204, but I b
[clang+lld] Pass -platform_version args to ld64.lldFix regression where we aren't passing `-platform_version` to new ld64.lld after {D95204}.Most of the changes were originally in D95204, but I backed them out due totest failures on builds which have `CLANG_DEFAULT_LINKER=lld`. The tests areproperly updated in this diff.Reviewed By: #lld-macho, thakisDifferential Revision: https://reviews.llvm.org/D97741
show more ...
[lld-macho] Partial revert of D95204Trying to unbreak https://lab.llvm.org/buildbot/#/builders/57/builds/4753I'm not able to repro the failures locally so... here's hoping
[lld-macho] Switch default to new Darwin backendThe new Darwin backend for LLD is now able to link reasonably largereal-world programs on x86_64. For instance, we have achievedself-hosting for th
[lld-macho] Switch default to new Darwin backendThe new Darwin backend for LLD is now able to link reasonably largereal-world programs on x86_64. For instance, we have achievedself-hosting for the X86_64 target, where all LLD tests pass whenbuilding lld with itself on macOS. As such, we would like to make it thedefault back-end.The new port is now named `ld64.lld`, and the old port remainsaccessible as `ld64.lld.darwinold`This [annoucement email][1] has some context. (But note that, unlikewhat the email says, we are no longer doing this as part of the LLVM 12branch cut -- instead we will go into LLVM 13.)Numerous mechanical test changes were required to make this change; inthe interest of creating something that's reviewable on Phabricator,I've split out the boring changes into a separate diff (D95905). I plan tomerge its contents with those in this diff before landing.(@gkm made the original draft of this diff, and he has agreed to let metake over.)[1]: https://lists.llvm.org/pipermail/llvm-dev/2021-January/147665.htmlReviewed By: #lld-macho, thakisDifferential Revision: https://reviews.llvm.org/D95204
Fix driver test from e16c0a9a689719The test failed silently if lld wasn't built alongside clang.But the test uses -###, so the "invalid linker name in -fuse-ld=lld"diag didn't make clang fail, an
Fix driver test from e16c0a9a689719The test failed silently if lld wasn't built alongside clang.But the test uses -###, so the "invalid linker name in -fuse-ld=lld"diag didn't make clang fail, and something else happened to match"-demangle", so the test passed.To fix, pass -B to a directory with two empty +x files (which workson non-Windows), and look for `"-demangle"` instead of just `-demangle`.Also force linker_version to 0 and pass a darwin triple.Differential Revision: https://reviews.llvm.org/D92028