Fix program args not having a space

When inputs.size() is 1 and we have programArgs,
we wind up squashing those two values together.

Be pessimistic and always add the space in.
Esse commit está contido em:
Rasmus Lerdorf
2013-05-04 19:06:50 -07:00
commit de Sara Golemon
commit 2b23084f39
+2 -1
Ver Arquivo
@@ -943,7 +943,8 @@ int runTarget(const CompilerOptions &po) {
}
cmd += po.outputDir + '/' + po.program;
cmd += string(" --file ") +
(po.inputs.size() == 1 ? po.inputs[0] : "") + po.programArgs;
(po.inputs.size() == 1 ? po.inputs[0] : "") +
" " + po.programArgs;
Logger::Info("running executable: %s", cmd.c_str());
ret = Util::ssystem(cmd.c_str());
if (ret && ret != -1) ret = 1;