Skip to content

Commit 80a0ac7

Browse files
fix simd premake gen
1 parent f64a7b4 commit 80a0ac7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

premake5.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ newoption { trigger = "mac-intel", category = "YGOPro", description = "Cross Com
129129

130130
newoption { trigger = "use-openmp", category = "YGOPro", description = "Enable OpenMP support (edge case)" }
131131

132-
newoption { trigger = "use-simd", category = "YGOPro", description = "", value = "none, sse2, avx2, neon, best", default = "best" }
132+
newoption { trigger = "use-simd", category = "YGOPro", description = "", value = "none, sse2, avx2, neon, best" }
133133

134134
function GetParam(param)
135135
return _OPTIONS[param] or os.getenv(string.upper(string.gsub(param,"-","_")))
@@ -279,8 +279,9 @@ if USE_AUDIO then
279279
end
280280
end
281281

282-
if GetParam("use-simd") then
283-
USE_SIMD = GetParam("use-simd")
282+
local useSimd = GetParam("use-simd")
283+
if useSimd then
284+
USE_SIMD = useSimd
284285
end
285286

286287
if not MAC_ARM and not MAC_INTEL and table.indexof({ "x86", "x86_64", "ARM64" }, PREMAKE_ARCH) == nil then

0 commit comments

Comments
 (0)