aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
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)' % (