Fix IPhone and OSX cross compilation

This commit is contained in:
Fabio Alessandrelli
2018-03-28 18:45:54 +02:00
parent 4b4ed9b724
commit e7b9e2f970
3 changed files with 8 additions and 2 deletions

View File

@@ -340,7 +340,7 @@ if webm_simd_optimizations == False:
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"])
is_clang_or_gcc = ('gcc' in env["CC"]) or ('clang' in env["CC"]) or ("OSXCROSS_ROOT" in os.environ)
env_libvpx_mmx = env_libvpx.Clone()
if cpu_bits == '32' and is_clang_or_gcc: