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:
commit
394427a3db
@ -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))
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user