Skip to content

Commit

Permalink
Fixed nil value error
Browse files Browse the repository at this point in the history
  • Loading branch information
GamesTrap committed Dec 4, 2023
1 parent 6f11146 commit 893f189
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 @@ -239,7 +239,7 @@ local function getcflags(toolset, cfg, filecfg)
local cppflags = ninja.list(toolset.getcppflags(filecfg))
local cflags = ninja.list(toolset.getcflags(filecfg)) --Note MSVC is missing the correct cdialect

local MSVCcdialect
local MSVCcdialect = ""
if toolset == p.tools.msc then
MSVCcdialect = " " .. ninja.MSVCCDialects[cfg.cdialect] .. " "
end
Expand All @@ -260,7 +260,7 @@ local function getcxxflags(toolset, cfg, filecfg)
local cppflags = ninja.list(toolset.getcppflags(filecfg))
local cxxflags = ninja.list(toolset.getcxxflags(filecfg)) --Note MSVC is missing the correct cppdialect

local MSVCcppdialect
local MSVCcppdialect = ""
if toolset == p.tools.msc then
MSVCcppdialect = " " .. ninja.MSVCCPPDialects[cfg.cppdialect] .. " "
end
Expand Down

0 comments on commit 893f189

Please sign in to comment.