Skip to content

Commit

Permalink
fixed wks.defaultplatform being nil and not ""
Browse files Browse the repository at this point in the history
  • Loading branch information
LostbBlizzard committed Oct 26, 2024
1 parent 9ea93a8 commit e5131a5
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 @@ -160,7 +160,7 @@ function ninja.generateWorkspace(wks)
table.insert(cfgs[cfg.buildcfg], key)

-- set first configuration name
if wks.defaultplatform == "" then
if wks.defaultplatform == nil then
if (cfg_first == nil) and (cfg.kind == p.CONSOLEAPP or cfg.kind == p.WINDOWEDAPP) then
cfg_first = key
end
Expand All @@ -169,7 +169,7 @@ function ninja.generateWorkspace(wks)
cfg_first_lib = key
end
if prj.name == wks.startproject then
if wks.defaultplatform == "" then
if wks.defaultplatform == nil then
cfg_first = key
elseif cfg.platform == wks.defaultplatform then
if cfg_first == nil then
Expand Down

0 comments on commit e5131a5

Please sign in to comment.