Skip to content

Commit d5e7891

Browse files
committed
Fix: parallel compilation on Linux due to params file
1 parent 9b3dfcf commit d5e7891

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tools/worker/swift_runner.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,13 @@ void SwiftRunner::ProcessArguments(const std::vector<std::string> &args) {
908908
auto it = args.begin();
909909
tool_args_.push_back(*it++);
910910

911+
// NOTE: on linux tool modes like `-modulewrap` are used which must be passed
912+
// outside of the args_ vector (so that its never part of a params file).
913+
// check for those modes here and add them directly to tool args.
914+
if (*it == "-modulewrap") {
915+
tool_args_.push_back(*it++);
916+
}
917+
911918
auto consumer = [&](absl::string_view arg) {
912919
args_.push_back(std::string(arg));
913920
};

0 commit comments

Comments
 (0)