diff --git a/src/actions/vstudio/vs2010_vcxproj.lua b/src/actions/vstudio/vs2010_vcxproj.lua index 1622c6fa..262f63ae 100644 --- a/src/actions/vstudio/vs2010_vcxproj.lua +++ b/src/actions/vstudio/vs2010_vcxproj.lua @@ -944,7 +944,8 @@ function m.basicRuntimeChecks(cfg) - if cfg.flags.NoRuntimeChecks or config.isOptimizedBuild(cfg) then + local runtime = config.getruntime(cfg) + if cfg.flags.NoRuntimeChecks or (config.isOptimizedBuild(cfg) and runtime:endswith("Debug")) then p.w('Default') end end @@ -1591,7 +1592,7 @@ function m.runtimeLibrary(cfg) local runtimes = { - StaticDebug = "MultiThreadedDebug", + StaticDebug = "MultiThreadedDebug", StaticRelease = "MultiThreaded", } local runtime = runtimes[config.getruntime(cfg)] diff --git a/tests/actions/vstudio/vc2010/test_compile_settings.lua b/tests/actions/vstudio/vc2010/test_compile_settings.lua index 215c56e9..5afff53f 100644 --- a/tests/actions/vstudio/vc2010/test_compile_settings.lua +++ b/tests/actions/vstudio/vc2010/test_compile_settings.lua @@ -160,7 +160,6 @@ NotUsing Level3 - Default Full true true @@ -176,7 +175,6 @@ NotUsing Level3 - Default MinSpace true true @@ -192,7 +190,6 @@ NotUsing Level3 - Default MaxSpeed true true @@ -208,7 +205,6 @@ NotUsing Level3 - Default Full true true @@ -612,7 +608,6 @@ NotUsing Level3 - Default ProgramDatabase ]] end