Skip to content

Commit

Permalink
Append non-direct arguments before non-cached.
Browse files Browse the repository at this point in the history
  • Loading branch information
abyss7 committed Jan 25, 2016
1 parent b11cbad commit 16c01b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/daemon/compilation_daemon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,11 @@ base::ProcessPtr CompilationDaemon::CreateProcess(
// |flags.other()| always must go first, since it contains the "-cc1" flag.
process->AppendArg(flags.other().begin(), flags.other().end());
process->AppendArg(Immutable(flags.action()));
process->AppendArg(flags.non_cached().begin(), flags.non_cached().end());

// FIXME: looks like the --internal-isystem flags order is important.
// We should preserve an original order.
process->AppendArg(flags.non_direct().begin(), flags.non_direct().end());
process->AppendArg(flags.non_cached().begin(), flags.non_cached().end());

// TODO: render args using libclang
for (const auto& plugin : flags.compiler().plugins()) {
Expand Down

0 comments on commit 16c01b1

Please sign in to comment.