Skip to content

Commit

Permalink
Fix a path construction issue introduced in 3fc85b7.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jan 31, 2017
1 parent d4b052d commit 6e88eae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/climain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ static bool RunCommand(const std::vector<std::string> args) {
if(replaceAt != std::string::npos) {
std::string outputSubst;
outputSubst = Dirname(inputFile);
outputSubst += PATH_SEP;
if(!outputSubst.empty()) {
outputSubst += PATH_SEP;
}
outputSubst += Basename(inputFile, /*stripExtension=*/true);
outputFile.replace(replaceAt, 1, outputSubst);
}
Expand Down

0 comments on commit 6e88eae

Please sign in to comment.