Merge branch 'master' into feature/fix-os-return

This commit is contained in:
Jordi Vilalta Prat 2019-11-04 11:25:23 +01:00 committed by GitHub
commit f76aa6812e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 0 deletions

View File

@ -722,3 +722,19 @@
</Link> </Link>
]] ]]
end 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.targetMachine,
m.additionalLinkOptions, m.additionalLinkOptions,
m.programDatabaseFile, m.programDatabaseFile,
m.assemblyDebug,
} }
end end
end end
@ -1811,6 +1812,12 @@
end end
end end
function m.assemblyDebug(cfg)
if cfg.assemblydebug then
m.element("AssemblyDebug", nil, "true")
end
end
function m.functionLevelLinking(cfg) function m.functionLevelLinking(cfg)
if cfg.functionlevellinking ~= nil then 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 -- Field name aliases for backward compatibility