Merge pull request #1359 from tbasnoopy/master

Add assemblyDebug for vs2017
This commit is contained in:
@starkos 2019-11-01 08:52:45 -04:00 committed by GitHub
commit bd70a11d1c
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