Skip to content

Commit

Permalink
Fixed Windows CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
GamesTrap committed Dec 4, 2023
1 parent cefc642 commit ed8f59e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ninja.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ local function getcflags(toolset, cfg, filecfg)
local cflags = ninja.list(toolset.getcflags(filecfg)) --Note MSVC is missing the correct cdialect

local MSVCcdialect = ""
if toolset == p.tools.msc then
if toolset == p.tools.msc and ninja.MSVCCDialects[cfg.cdialect] ~= nil then
MSVCcdialect = " " .. ninja.MSVCCDialects[cfg.cdialect] .. " "
end

Expand All @@ -261,7 +261,7 @@ local function getcxxflags(toolset, cfg, filecfg)
local cxxflags = ninja.list(toolset.getcxxflags(filecfg)) --Note MSVC is missing the correct cppdialect

local MSVCcppdialect = ""
if toolset == p.tools.msc then
if toolset == p.tools.msc and ninja.MSVCCPPDialects[cfg.cppdialect] ~= nil then
MSVCcppdialect = " " .. ninja.MSVCCPPDialects[cfg.cppdialect] .. " "
end

Expand Down

0 comments on commit ed8f59e

Please sign in to comment.