summaryrefslogtreecommitdiff
path: root/modules/webm/libvpx
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-09-25 11:15:25 +0200
committerRémi Verschelde <rverschelde@gmail.com>2018-09-25 11:15:25 +0200
commit5adf7aa6b75d1ab566f4bd68c4dec3ca7c188306 (patch)
tree657fa8a1bcbb6cfd82ddd7cd7e2a3bc4a5a825c7 /modules/webm/libvpx
parent298a6ad73c660f616a24ddcf87a2f66b650537c8 (diff)
SCons: Fix checks for clang in env['CXX']
They would match the whole path instead of only the filename.
Diffstat (limited to 'modules/webm/libvpx')
-rw-r--r--modules/webm/libvpx/SCsub2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/webm/libvpx/SCsub b/modules/webm/libvpx/SCsub
index 2daf8c282f..711000bd9f 100644
--- a/modules/webm/libvpx/SCsub
+++ b/modules/webm/libvpx/SCsub
@@ -349,7 +349,7 @@ if webm_multithread:
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_mt)
if webm_cpu_x86:
- is_clang_or_gcc = ('gcc' in env["CC"]) or ('clang' in env["CC"]) or ("OSXCROSS_ROOT" in os.environ)
+ is_clang_or_gcc = ('gcc' in os.path.basename(env["CC"])) or ('clang' in os.path.basename(env["CC"])) or ("OSXCROSS_ROOT" in os.environ)
env_libvpx_mmx = env_libvpx.Clone()
if cpu_bits == '32' and is_clang_or_gcc: