Added Unsafe flag support to the C# Make action.

This commit is contained in:
triton 2013-09-27 00:27:48 +01:00
parent 5946f73f4c
commit 6307cf0bd1
2 changed files with 16 additions and 0 deletions

View File

@ -178,6 +178,10 @@
function dotnet.getflags(cfg)
local flags = {}
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

@ -38,6 +38,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.