diff options
author | José Fonseca <[email protected]> | 2013-04-24 22:02:18 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2013-04-25 11:59:01 +0100 |
commit | 1687932d2b54746349f3129aff14bfbdf9e8fb25 (patch) | |
tree | b80b254d57be79e0ceccdfd9d3dda7aff2a85fd9 /src/mapi | |
parent | f0c296773d5c5a9c3d933a51ce6c5580a7e2c4e0 (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/mapi')
-rw-r--r-- | src/mapi/glapi/SConscript | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapi/glapi/SConscript b/src/mapi/glapi/SConscript index 79cbb6a40d1..ac11148ffcf 100644 --- a/src/mapi/glapi/SConscript +++ b/src/mapi/glapi/SConscript @@ -49,7 +49,8 @@ for s in mapi_sources: # # Assembly sources # -if env['gcc'] and env['platform'] not in ('cygwin', 'darwin', 'windows'): +if (env['gcc'] or env['clang']) and \ + env['platform'] not in ('cygwin', 'darwin', 'windows'): GLAPI = '#src/mapi/glapi/' if env['machine'] == 'x86': |