Skip to content

Commit

Permalink
Removed defaulting of externalwarnings option if nil and not targetin…
Browse files Browse the repository at this point in the history
…g windows
  • Loading branch information
GamesTrap committed Dec 9, 2023
1 parent 78140b9 commit 46b482e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ninja.lua
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,10 @@ function ninja.generateProjectCfg(cfg)
-- Some toolset fixes
cfg.gccprefix = cfg.gccprefix or ""

if cfg.externalwarnings == nil then
if os.target() == "windows" and cfg.externalwarnings == nil then
cfg.externalwarnings = "Default"
end

if cfg.characterset == nil then
cfg.characterset = "Default"
end
Expand Down

0 comments on commit 46b482e

Please sign in to comment.