Merge pull request #85915 from akien-mga/3.x-fix-linux-arm64-theora-libvpx
[3.x] SCons: Fix Linux arm64 build for theora and libvpx
This commit is contained in:
commit
4bb21d3d83
2 changed files with 4 additions and 2 deletions
|
@ -228,7 +228,9 @@ elif env["platform"] != "windows": # Disable for Windows, yasm SIMD optimizatio
|
|||
import platform
|
||||
|
||||
is_x11_or_server_arm = (env["platform"] == "x11" or env["platform"] == "server") and (
|
||||
platform.machine().startswith("arm") or platform.machine().startswith("aarch")
|
||||
platform.machine().startswith("arm")
|
||||
or platform.machine().startswith("aarch")
|
||||
or ("arch" in env and env["arch"].startswith("arm"))
|
||||
)
|
||||
is_macos_x86 = env["platform"] == "osx" and ("arch" in env and (env["arch"] != "arm64"))
|
||||
is_ios_x86 = env["platform"] == "iphone" and ("arch" in env and env["arch"].startswith("x86"))
|
||||
|
|
|
@ -312,7 +312,7 @@ def configure(env):
|
|||
env.ParseConfig("pkg-config theora theoradec --cflags --libs")
|
||||
else:
|
||||
list_of_x86 = ["x86_64", "x86", "i386", "i586"]
|
||||
if any(platform.machine() in s for s in list_of_x86):
|
||||
if (env["arch"].startswith("x86") or env["arch"] == "") and any(platform.machine() in s for s in list_of_x86):
|
||||
env["x86_libtheora_opt_gcc"] = True
|
||||
|
||||
if not env["builtin_libvpx"]:
|
||||
|
|
Loading…
Reference in a new issue