[clang] 1c7f339 - clang/darwin: use response files with ld64
Keith Smiley via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 9 09:06:51 PDT 2021
Author: Keith Smiley
Date: 2021-06-09T09:04:37-07:00
New Revision: 1c7f3395b8ec52462220898495883ec570390367
URL: https://github.com/llvm/llvm-project/commit/1c7f3395b8ec52462220898495883ec570390367
DIFF: https://github.com/llvm/llvm-project/commit/1c7f3395b8ec52462220898495883ec570390367.diff
LOG: clang/darwin: use response files with ld64
This crasher was fixed with Xcode 13.0 beta 1 / ld64 705. This is an
updated revert of https://reviews.llvm.org/D92357
Differential Revision: https://reviews.llvm.org/D103934
Added:
Modified:
clang/lib/Driver/ToolChains/Darwin.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp
index 5ccd2300afd39..8a0c4721eea0e 100644
--- a/clang/lib/Driver/ToolChains/Darwin.cpp
+++ b/clang/lib/Driver/ToolChains/Darwin.cpp
@@ -711,10 +711,7 @@ void darwin::Linker::ConstructJob(Compilation &C, const JobAction &JA,
}
ResponseFileSupport ResponseSupport;
- if (LinkerIsLLDDarwinNew) {
- // Xcode12's ld64 added support for @response files, but it's crashy:
- // https://openradar.appspot.com/radar?id=4933317065441280
- // FIXME: Pass this for ld64 once it no longer crashes.
+ if (Version[0] >= 705 || LinkerIsLLDDarwinNew) {
ResponseSupport = ResponseFileSupport::AtFileUTF8();
} else {
// For older versions of the linker, use the legacy filelist method instead.
More information about the cfe-commits
mailing list