From 69b58cf189d4e49f33bea8912babfae3e2bac300 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 22 Sep 2015 07:52:45 -0700 Subject: [PATCH] Fixing checked build. --- premake5.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index f33d90631..05fa0ae44 100644 --- a/premake5.lua +++ b/premake5.lua @@ -45,6 +45,10 @@ filter("configurations:Debug") "_NO_DEBUG_HEAP=1", }) runtime("Release") +filter({"configurations:Debug", "platforms:Windows"}) + linkoptions({ + "/NODEFAULTLIB:MSVCRTD", + }) filter("configurations:Release") runtime("Release") @@ -57,6 +61,10 @@ filter("configurations:Release") "LinkTimeOptimization", }) runtime("Release") +filter({"configurations:Release", "platforms:Windows"}) + linkoptions({ + "/NODEFAULTLIB:MSVCRTD", + }) filter("platforms:Linux") system("linux") @@ -96,7 +104,6 @@ filter("platforms:Windows") linkoptions({ "/ignore:4006", -- Ignores complaints about empty obj files. "/ignore:4221", - "/NODEFAULTLIB:MSVCRTD" }) links({ "ntdll",