changeset 17310:f0364a8ec40e

force USE_CLANG when building on MacOS
author Doug Simon <doug.simon@oracle.com>
date Wed, 01 Oct 2014 21:13:50 +0200
parents 845e881ce054
children 8b4364df9bd3
files mx/mx_graal.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mx/mx_graal.py	Wed Oct 01 20:45:56 2014 +0200
+++ b/mx/mx_graal.py	Wed Oct 01 21:13:50 2014 +0200
@@ -901,6 +901,9 @@
                 setMakeVar('GRAAL_VERSION', version)
                 setMakeVar('INCLUDE_GRAAL', 'true')
             setMakeVar('INSTALL', 'y', env=env)
+            if mx.get_os() == 'darwin' and platform.mac_ver()[0] != '':
+                # Force use of clang on MacOS
+                setMakeVar('USE_CLANG', 'true')
             if mx.get_os() == 'solaris':
                 # If using sparcWorks, setup flags to avoid make complaining about CC version
                 cCompilerVersion = subprocess.Popen('CC -V', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True).stderr.readlines()[0]