aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/build.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mhmake/src/build.cpp')
-rw-r--r--tools/mhmake/src/build.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/tools/mhmake/src/build.cpp b/tools/mhmake/src/build.cpp
index 36fdefb3d..8737bb268 100644
--- a/tools/mhmake/src/build.cpp
+++ b/tools/mhmake/src/build.cpp
@@ -683,7 +683,7 @@ string mhmakefileparser::GetFullCommand(string Command)
if (!FullCommand.empty())
{
Found=true;
- Command=FullCommand;
+ Command=QuoteFileName(FullCommand);
}
}
else
@@ -700,7 +700,7 @@ string mhmakefileparser::GetFullCommand(string Command)
if (!FullCommand.empty())
{
Found=true;
- Command=FullCommand;
+ Command=QuoteFileName(FullCommand);
}
else
{
@@ -708,7 +708,7 @@ string mhmakefileparser::GetFullCommand(string Command)
if (!FullCommand.empty())
{
Found=true;
- Command=GetPythonExe()+QuoteFileName(FullCommand);
+ Command=GetPythonExe()+QuoteFileName(FullCommand);
}
}
}
@@ -771,7 +771,7 @@ mh_pid_t mhmakefileparser::OsExeCommand(const string &Command, const string &Par
string tmpCommand=Command.substr(ComSpec.size(),Command.size());
FullCommandLine=ComSpec;
- string ComspecCommandLine=QuoteFileName(tmpCommand)+Params;
+ string ComspecCommandLine=tmpCommand+Params;
int NextBegin=0;
int EndPos=0;
CommandSep(ComspecCommandLine,EndPos,NextBegin);
@@ -806,11 +806,7 @@ mh_pid_t mhmakefileparser::OsExeCommand(const string &Command, const string &Par
}
else
{
- const string PythonExe=GetPythonExe();
- if (!(Command.substr(0,PythonExe.size())==PythonExe))
- FullCommandLine=QuoteFileName(Command)+Params;
- else
- FullCommandLine=Command+Params;
+ FullCommandLine=Command+Params;
}
char *pFullCommand=new char[FullCommandLine.length()+1];
strcpy(pFullCommand,FullCommandLine.c_str());