*ide: MSC & GCC builders fixed issue with compiler options (thanks Massimo)

git-svn-id: svn://ultimatepp.org/upp/trunk@4425 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-01-16 11:33:05 +00:00
parent 537d62fdb7
commit 3ab7261388
2 changed files with 3 additions and 3 deletions

View file

@ -193,7 +193,7 @@ bool GccBuilder::BuildPackage(const String& package, Vector<String>& linkfile,
exec << fuse_cxa_atexit << " -x objective-c++ ";
else
exec << fuse_cxa_atexit << " -x c++ ";
exec << GetHostPathQ(fn) << " -o " << GetHostPathQ(objfile);
exec << GetHostPathQ(fn) << " " << soptions[i] << " -o " << GetHostPathQ(objfile);
PutVerbose(exec);
int slot = AllocSlot();
execerr = (slot < 0 || !Run(exec, slot, GetHostPath(objfile), 1));

View file

@ -314,8 +314,8 @@ bool MscBuilder::BuildPackage(const String& package, Vector<String>& linkfile, S
c = cc_speed;
int slot = AllocSlot();
if(slot < 0 || !Run(c + PdbPch(package, slot, !sContainsPchOptions(cc) && !sContainsPchOptions(soptions[i]))
+ soptions[i] + (ext == ".c" ? " -Tc " : " -Tp ")
+ GetHostPathQ(fn) + " -Fo" + GetHostPathQ(objfile), slot, GetHostPath(objfile), 1))
+ " " + soptions[i] + (ext ".c" ? " -Tc " : " -Tp ")
+ GetHostPathQ(fn) + " -Fo" + GetHostPathQ(objfile), slot, GetHostPath(objfile), 1))
execerr = true;
}
if(execerr)