Fix a path construction issue introduced in 3fc85b7
.
parent
d4b052d34d
commit
6e88eaef69
|
@ -309,7 +309,9 @@ static bool RunCommand(const std::vector<std::string> args) {
|
||||||
if(replaceAt != std::string::npos) {
|
if(replaceAt != std::string::npos) {
|
||||||
std::string outputSubst;
|
std::string outputSubst;
|
||||||
outputSubst = Dirname(inputFile);
|
outputSubst = Dirname(inputFile);
|
||||||
|
if(!outputSubst.empty()) {
|
||||||
outputSubst += PATH_SEP;
|
outputSubst += PATH_SEP;
|
||||||
|
}
|
||||||
outputSubst += Basename(inputFile, /*stripExtension=*/true);
|
outputSubst += Basename(inputFile, /*stripExtension=*/true);
|
||||||
outputFile.replace(replaceAt, 1, outputSubst);
|
outputFile.replace(replaceAt, 1, outputSubst);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue