summaryrefslogtreecommitdiffstats
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r--src/mesa/SConscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index 3cd0f87ef5f..15b62692a62 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -351,7 +351,8 @@ get_hash_header = env.CodeGenerate(
#
# Assembly sources
#
-if env['gcc'] and env['platform'] not in ('cygwin', 'darwin', 'windows', 'haiku'):
+if (env['gcc'] or env['clang']) and \
+ env['platform'] not in ('cygwin', 'darwin', 'windows', 'haiku'):
if env['machine'] == 'x86':
env.Append(CPPDEFINES = [
'USE_X86_ASM',