From 458d5290078e10ecfecc0ed23b18832c3577e0ee Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Wed, 23 Apr 2025 14:47:39 +0700 Subject: [PATCH] build: fix msvc build --- scripts/src/3rdparty.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index 57db32bb887..ad7932afdc2 100755 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -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"