Fix for build failure in interop projects (/mt with /clr not supported)

This commit is contained in:
Mike Aversa 2017-09-20 16:07:19 -07:00 committed by Tom van Dijck
parent a95e083c39
commit dd3221dff6
2 changed files with 6 additions and 0 deletions

View File

@ -2199,6 +2199,8 @@
local runtimes = {
StaticDebug = "MultiThreadedDebug",
StaticRelease = "MultiThreaded",
StaticDLLDebug = "MultiThreadedDebugDLL",
StaticDLLRelease = "MultiThreadedDLL"
}
local runtime = runtimes[config.getruntime(cfg)]
if runtime then

View File

@ -327,6 +327,10 @@
function config.getruntime(cfg)
local linkage = iif(cfg.flags.StaticRuntime, "Static", "Shared")
if cfg.clr == "On" and cfg.flags.StaticRuntime then
linkage = linkage .. "DLL"
end
if not cfg.runtime then
return linkage .. iif(config.isDebugBuild(cfg), "Debug", "Release")
else