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
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user