From 5d8af37c41c92005cd24b4e18c67e50515d00946 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 22 Dec 2025 11:37:16 +0100 Subject: [PATCH] makepanda: Only add -msse2 when building for x86 platforms Partial backport of 2759fb9606ee743660dafac61ed60bba34f9c0f8 --- makepanda/makepanda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index d4879b869f..2fd81b6624 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -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.