Skip to content

Commit

Permalink
Fix wrong -o argument parsing
Browse files Browse the repository at this point in the history
Regression came from 6641603 revision
  • Loading branch information
marxin committed Nov 1, 2016
1 parent 6641603 commit 2517842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ List<Source> Source::parse(const String &cmdLine,
}
if (!p.isEmpty()) {
bool ok;
p = Path::resolved(split.value(++i), Path::RealPath, path, &ok);
p = Path::resolved(p, Path::RealPath, path, &ok);
// error() << p << ok << split.value(i) << Path::resolved(split.value(i), Path::MakeAbsolute);
if (!ok && !p.isAbsolute()) {
p.prepend(path); // the object file might not exist
Expand Down

0 comments on commit 2517842

Please sign in to comment.