From 0b27f6fc138d15264046d75f0aed125ef86fd311 Mon Sep 17 00:00:00 2001 From: Reece Date: Mon, 7 Mar 2022 22:49:30 +0000 Subject: [PATCH] [*] Work around for missing msvc detection | premake bug --- Core/JSON/jsonProjectHandlers.lua | 3 ++- Core/solution.lua | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/JSON/jsonProjectHandlers.lua b/Core/JSON/jsonProjectHandlers.lua index ff6cea0..dce1e02 100644 --- a/Core/JSON/jsonProjectHandlers.lua +++ b/Core/JSON/jsonProjectHandlers.lua @@ -181,7 +181,8 @@ local function auBlockProjectKeyClangIgnore(processor, value) end local function auBlockProjectKeyMSVCIgnore(processor, value) - auFilter {"toolset:msc"} + auFilter {'not toolset:clang'} + --auFilter {"toolset:msc"} disablewarnings(value) auFilter {} end diff --git a/Core/solution.lua b/Core/solution.lua index 0f24421..c4c1793 100644 --- a/Core/solution.lua +++ b/Core/solution.lua @@ -41,6 +41,8 @@ local function auStartSolution(sln) auFilterForPlatforms(function(platform) if (platform == "win32") then toolset "clang" + else + toolset "msc" end end) end