Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add assemblyDebug for vs2017 #1359

Merged
merged 1 commit into from
Nov 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions modules/vstudio/tests/vc2010/test_link.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions modules/vstudio/vs2010_vcxproj.lua
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@
m.targetMachine,
m.additionalLinkOptions,
m.programDatabaseFile,
m.assemblyDebug,
}
end
end
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/_premake_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,12 @@
}
}

api.register {
name = "assemblydebug",
scope = "config",
kind = "boolean"
}

-----------------------------------------------------------------------------
--
-- Field name aliases for backward compatibility
Expand Down