aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorcordney <[email protected]>2015-03-15 03:15:09 +0000
committerlloyd <[email protected]>2015-03-15 03:15:09 +0000
commit57941a22dee802b55909ffb33506b9dd461425e9 (patch)
tree1a8e49f524a180e5785fd93aaf9736b27cdf2a9a /configure.py
parenteba1294cac0d0b069e6a7a156984a0e3fce050a8 (diff)
Github pull 65, Use Clang on OS X when present
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index c6fdcd20a..e6838c788 100755
--- a/configure.py
+++ b/configure.py
@@ -1823,6 +1823,9 @@ def main(argv = None):
options.compiler = 'gcc'
else:
options.compiler = 'msvc'
+ elif options.os == 'darwin':
+ if have_program('clang++'):
+ options.compiler = 'clang'
else:
options.compiler = 'gcc'
logging.info('Guessing to use compiler %s (use --cc to set)' % (