mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
3rdparty/bimg: Re-added hack to work around GitHub CI issues.
Attempt to enable SSE features explicitly specified in ARCHOPTS. It will still fall back to SSE 2 if you just use -march= to enable later SSE features.
This commit is contained in:
parent
98736c0972
commit
c2a22eb5e2
@ -1395,6 +1395,25 @@ project "bimg"
|
||||
"BX_CONFIG_DEBUG=0",
|
||||
}
|
||||
|
||||
if 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"
|
||||
if string.find(archopts, "-msse4.2") then
|
||||
ssever = "42"
|
||||
elseif string.find(archopts, "-msse4.1") then
|
||||
ssever = "41"
|
||||
elseif string.find(archopts, "-msse3") then
|
||||
ssever = "30"
|
||||
end
|
||||
configuration { "x64", "mingw*", "not arm64" }
|
||||
defines {
|
||||
"ASTCENC_AVX=0",
|
||||
"ASTCENC_SSE=" .. ssever,
|
||||
}
|
||||
configuration { }
|
||||
end
|
||||
|
||||
configuration { "x32" }
|
||||
defines {
|
||||
"ASTCENC_AVX=0",
|
||||
|
Loading…
Reference in New Issue
Block a user