diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-12 09:39:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-12 09:39:51 +0200 |
commit | 9af5cab32ed4fab8bed28da2349cb08b45730342 (patch) | |
tree | 88e40a7600cb0ed09d6f355b602dcd02f72cdbdd /modules/webm | |
parent | 3d9deda8b367ae9c715bef7e9b1b5917ed81240f (diff) | |
parent | ce64c2a32e0f1db8f0f75e1091a24d01fd669044 (diff) |
Merge pull request #18802 from bruvzg/fix_x11_arm_build
Fix X11 build on ARM Linux
Diffstat (limited to 'modules/webm')
-rw-r--r-- | modules/webm/libvpx/SCsub | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/webm/libvpx/SCsub b/modules/webm/libvpx/SCsub index b09c232b3c..c681e2b34f 100644 --- a/modules/webm/libvpx/SCsub +++ b/modules/webm/libvpx/SCsub @@ -263,7 +263,7 @@ if env["platform"] == 'uwp': webm_cpu_x86 = True else: import platform - is_x11_or_server_arm = ((env["platform"] == 'x11' or env["platform"] == 'server') and platform.machine().startswith('arm')) + is_x11_or_server_arm = ((env["platform"] == 'x11' or env["platform"] == 'server') and (platform.machine().startswith('arm') or platform.machine().startswith('aarch'))) is_ios_x86 = (env["platform"] == 'iphone' and env["ios_sim"]) is_android_x86 = (env["platform"] == 'android' and env["android_arch"] == 'x86') if is_android_x86: @@ -337,7 +337,6 @@ if webm_cpu_arm: if webm_simd_optimizations == False: print("WebM SIMD optimizations are disabled. Check if your CPU architecture, CPU bits or platform are supported!") - env_libvpx.add_source_files(env.modules_sources, libvpx_sources) if webm_cpu_x86: is_clang_or_gcc = ('gcc' in env["CC"]) or ('clang' in env["CC"]) or ("OSXCROSS_ROOT" in os.environ) @@ -379,5 +378,5 @@ elif webm_cpu_arm: env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm_neon_armasm_ms) elif env["platform"] == 'iphone': env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm_neon_gas_apple) - elif not env["android_arch"] == 'arm64v8': + elif (is_x11_or_server_arm and cpu_bits == '32') or (env["platform"] == 'android' and not env["android_arch"] == 'arm64v8'): env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm_neon_gas) |