Fix a path construction issue introduced in 3fc85b7.

pull/97/merge
whitequark 2017-01-31 02:15:37 +00:00
parent d4b052d34d
commit 6e88eaef69
1 changed files with 3 additions and 1 deletions

View File

@ -309,7 +309,9 @@ static bool RunCommand(const std::vector<std::string> args) {
if(replaceAt != std::string::npos) {
std::string outputSubst;
outputSubst = Dirname(inputFile);
if(!outputSubst.empty()) {
outputSubst += PATH_SEP;
}
outputSubst += Basename(inputFile, /*stripExtension=*/true);
outputFile.replace(replaceAt, 1, outputSubst);
}