Added Unsafe flag support to the C# Make action.
This commit is contained in:
parent
5946f73f4c
commit
6307cf0bd1
@ -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))
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user