ide: Fixed issue with C/C++ options with MSC

git-svn-id: svn://ultimatepp.org/upp/trunk@10418 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-11-12 18:50:44 +00:00
parent 2342af82d2
commit a8de21855b

View file

@ -391,7 +391,7 @@ bool MscBuilder::BuildPackage(const String& package, Vector<String>& linkfile, V
int slot = AllocSlot();
if(HasAnyDebug())
c << Pdb(package, slot, !sContainsPchOptions(cc) && !sContainsPchOptions(soptions[i]));
c << " " + soptions[i] + (ext == ".c" ? Join(" -Tc", c_options) : Join(" -Tp", cpp_options)) + ' '
c << " " + soptions[i] + (ext == ".c" ? Join(c_options, " -Tc") : Join(cpp_options, " -Tp")) + ' '
+ GetHostPathQ(fn) + " -Fo" + GetHostPathQ(objfile);
if(nopch.Find(fn) < 0)
c << pch_use;