Avoid writing empty AdditionalOptions to PS3 compiler blocks

This commit is contained in:
Jason Perkins 2012-02-06 17:39:32 -05:00
parent c9786f2242
commit bbb70b9f18
2 changed files with 3 additions and 2 deletions

View File

@ -320,7 +320,9 @@
_p(4,'UsePrecompiledHeader="%s"', iif(_ACTION > "vs2003" or cfg.flags.NoPCH, 0, 2))
end
_x(4,'AdditionalOptions="%s"', table.concat(buildoptions, " "))
if #buildoptions > 0 then
_x(4,'AdditionalOptions="%s"', table.concat(buildoptions, " "))
end
if #cfg.includedirs > 0 then
_x(4,'AdditionalIncludeDirectories="%s"', path.translate(table.concat(cfg.includedirs, ";")))

View File

@ -334,7 +334,6 @@
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="0"
AdditionalOptions=""
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
DebugInformationFormat="0"
CompileAs="0"