Author: Petr Hosek Date: 2023-04-20T02:44:40Z New Revision: 9ba3a22803980c1b32aa4371d87fff4d144ff3d0
URL: https://github.com/llvm/llvm-project/commit/9ba3a22803980c1b32aa4371d87fff4d144ff3d0 DIFF: https://github.com/llvm/llvm-project/commit/9ba3a22803980c1b32aa4371d87fff4d144ff3d0.diff LOG: [Driver] Support response file in Fuchsia driver All officially supported linkers should support response files and this avoids issues when compiling on platforms such as Windows. Differential Revision: https://reviews.llvm.org/D148763 Added: Modified: clang/lib/Driver/ToolChains/Fuchsia.cpp Removed: ################################################################################ diff --git a/clang/lib/Driver/ToolChains/Fuchsia.cpp b/clang/lib/Driver/ToolChains/Fuchsia.cpp index b8bb000391b91..0b74e6aa38e93 100644 --- a/clang/lib/Driver/ToolChains/Fuchsia.cpp +++ b/clang/lib/Driver/ToolChains/Fuchsia.cpp @@ -187,7 +187,8 @@ void fuchsia::Linker::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-lc"); } - C.addCommand(std::make_unique<Command>(JA, *this, ResponseFileSupport::None(), + C.addCommand(std::make_unique<Command>(JA, *this, + ResponseFileSupport::AtFileCurCP(), Exec, CmdArgs, Inputs, Output)); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits