build: fix msvc build

This commit is contained in:
Patrick Mackinlay 2025-04-23 14:47:39 +07:00
parent e2acaa460e
commit 458d529007

View File

@ -1396,7 +1396,7 @@ project "bimg"
"BX_CONFIG_DEBUG=0",
}
if not string.find(_OPTIONS["gcc"], "clang") then
if _OPTIONS["gcc"]~=nil and not string.find(_OPTIONS["gcc"], "clang") then
-- This is a gross hack. For some reason GitHub Actions MinGW GCC seems to define SSE feature macros for features that are not enabled.
local archopts = (_OPTIONS["ARCHOPTS"] or "") .. " " .. (_OPTIONS["ARCHOPTS_CXX"] or "")
local ssever = "20"