From b5f2a98e89527a87e18f775a6ac25de414d31b2c Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Wed, 17 Oct 2012 09:50:00 +0200 Subject: [PATCH] make clang++ default compiler on Mac --- SConstruct | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SConstruct b/SConstruct index 866e12b90..754ea057a 100644 --- a/SConstruct +++ b/SConstruct @@ -72,6 +72,8 @@ conf = Configure(env, custom_tests = { 'CheckBoost' : CheckBoost, 'CheckProtobuf if GetOption('cxx') is None: #default Compiler + if sys.platform == 'darwin': #Mac OS X + env['CXX'] = 'clang++' print 'Using default C++ Compiler: ', env['CXX'].strip() else: env.Replace(CXX = GetOption('cxx'))