SCons: Fix Linux arm64 build for theora and libvpx
The architecture handling in 3.x is all over the place, and I'm not
going to start a major refactor like I did for 4.0 so late in its life
cycle.
So let's add more hacks! ⚔️
This requires manually passing `arch=arm64` when compiling, but this is
already the case for other parts of the codebase.
This commit is contained in:
@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user