add assemblyDebug

This commit is contained in:
Skibbe 2019-10-31 13:24:29 +01:00
parent b96bc35ba1
commit 785c8452ee
3 changed files with 29 additions and 0 deletions

View File

@ -722,3 +722,19 @@
</Link>
]]
end
--
-- Test ignoring default libraries with extensions specified.
--
function suite.assemblyDebug()
assemblydebug "true"
prepare()
test.capture [[
<Link>
<SubSystem>Windows</SubSystem>
<ImportLibrary>bin\Debug\MyProject.lib</ImportLibrary>
<AssemblyDebug>true</AssemblyDebug>
</Link>
]]
end

View File

@ -507,6 +507,7 @@
m.targetMachine,
m.additionalLinkOptions,
m.programDatabaseFile,
m.assemblyDebug,
}
end
end
@ -1811,6 +1812,12 @@
end
end
function m.assemblyDebug(cfg)
if cfg.assemblydebug then
m.element("AssemblyDebug", nil, "true")
end
end
function m.functionLevelLinking(cfg)
if cfg.functionlevellinking ~= nil then

View File

@ -1374,6 +1374,12 @@
}
}
api.register {
name = "assemblydebug",
scope = "config",
kind = "boolean"
}
-----------------------------------------------------------------------------
--
-- Field name aliases for backward compatibility