summaryrefslogtreecommitdiffstats
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2013-04-24 22:02:18 +0100
committerJosé Fonseca <[email protected]>2013-04-25 11:59:01 +0100
commit1687932d2b54746349f3129aff14bfbdf9e8fb25 (patch)
treeb80b254d57be79e0ceccdfd9d3dda7aff2a85fd9 /src/mesa/SConscript
parentf0c296773d5c5a9c3d933a51ce6c5580a7e2c4e0 (diff)
scons: Support clang.
clang is supports most gcc options / extensions, with a some exceptions. The biggest advantage of using clang is that compilation times are much short. One can tell scons to use clang when building by invoking it as CC=clang CXX=clang++ scons libgl-xlib
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',