Fix for build failure in interop projects (/mt with /clr not supported)
This commit is contained in:
parent
a95e083c39
commit
dd3221dff6
@ -2199,6 +2199,8 @@
|
||||
local runtimes = {
|
||||
StaticDebug = "MultiThreadedDebug",
|
||||
StaticRelease = "MultiThreaded",
|
||||
StaticDLLDebug = "MultiThreadedDebugDLL",
|
||||
StaticDLLRelease = "MultiThreadedDLL"
|
||||
}
|
||||
local runtime = runtimes[config.getruntime(cfg)]
|
||||
if runtime then
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user