makepanda: Only add -msse2 when building for x86 platforms

Partial backport of 2759fb9606
This commit is contained in:
rdb 2025-12-22 11:37:16 +01:00
parent 5b2cb98a93
commit 5d8af37c41
1 changed files with 1 additions and 1 deletions

View File

@ -1658,7 +1658,7 @@ def CompileCxx(obj,src,opts):
if optlevel >= 4 or target == "android":
cmd += " -fno-rtti"
if ('SSE2' in opts or not PkgSkip("SSE2")) and not arch.startswith("arm") and arch != 'aarch64':
if ('SSE2' in opts or not PkgSkip("SSE2")) and arch.find('86') > 0:
cmd += " -msse2"
# Needed by both Python, Panda, Eigen, all of which break aliasing rules.