Skip to content

Commit

Permalink
[Driver] Support response file in Fuchsia driver
Browse files Browse the repository at this point in the history
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
  • Loading branch information
petrhosek committed Apr 20, 2023
1 parent f50059b commit 9ba3a22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/lib/Driver/ToolChains/Fuchsia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 9ba3a22

Please sign in to comment.