Merged in triton/premake-cs-fixes/cs-unsafe2 (pull request #67)

Added Unsafe flag support to the C# Make action.
This commit is contained in:
Jason Perkins 2014-07-29 14:49:46 -04:00
commit 394427a3db
2 changed files with 16 additions and 0 deletions

View File

@ -220,6 +220,10 @@
-- the .NET Framework. VS sets this flag by default for C# projects.
table.insert(flags, '/noconfig')
if cfg.flags.Unsafe then
table.insert(flags, '/unsafe')
end
if cfg.project.icon then
local fn = project.getrelative(cfg.project, cfg.project.icon)
table.insert(flags, string.format('/win32icon:"%s"', fn))

View File

@ -37,6 +37,18 @@
]]
end
--
-- If the Unsafe flag has been set, it should be specified.
--
function suite.onUnsafe()
flags { "Unsafe" }
prepare()
test.capture [[
FLAGS = /noconfig /unsafe
]]
end
--
-- If an application icon has been set, it should be specified.