From bbb70b9f18623e79ef15f9d5841329b86392de75 Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Mon, 6 Feb 2012 17:39:32 -0500 Subject: [PATCH] Avoid writing empty AdditionalOptions to PS3 compiler blocks --- src/actions/vstudio/vs200x_vcproj.lua | 4 +++- tests/actions/vstudio/vc200x/test_compiler_block.lua | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/actions/vstudio/vs200x_vcproj.lua b/src/actions/vstudio/vs200x_vcproj.lua index 447b3657..0fd5f049 100644 --- a/src/actions/vstudio/vs200x_vcproj.lua +++ b/src/actions/vstudio/vs200x_vcproj.lua @@ -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, ";"))) diff --git a/tests/actions/vstudio/vc200x/test_compiler_block.lua b/tests/actions/vstudio/vc200x/test_compiler_block.lua index ebb10f13..87204bf0 100644 --- a/tests/actions/vstudio/vc200x/test_compiler_block.lua +++ b/tests/actions/vstudio/vc200x/test_compiler_block.lua @@ -334,7 +334,6 @@