Mercurial > hg > truffle
comparison mx/mx_graal.py @ 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 | b641450c19ce |
children | f434913f9cba |
comparison
equal
deleted
inserted
replaced
17309:845e881ce054 | 17310:f0364a8ec40e |
---|---|
899 version = graal_version() | 899 version = graal_version() |
900 setMakeVar('USER_RELEASE_SUFFIX', 'graal-' + version) | 900 setMakeVar('USER_RELEASE_SUFFIX', 'graal-' + version) |
901 setMakeVar('GRAAL_VERSION', version) | 901 setMakeVar('GRAAL_VERSION', version) |
902 setMakeVar('INCLUDE_GRAAL', 'true') | 902 setMakeVar('INCLUDE_GRAAL', 'true') |
903 setMakeVar('INSTALL', 'y', env=env) | 903 setMakeVar('INSTALL', 'y', env=env) |
904 if mx.get_os() == 'darwin' and platform.mac_ver()[0] != '': | |
905 # Force use of clang on MacOS | |
906 setMakeVar('USE_CLANG', 'true') | |
904 if mx.get_os() == 'solaris': | 907 if mx.get_os() == 'solaris': |
905 # If using sparcWorks, setup flags to avoid make complaining about CC version | 908 # If using sparcWorks, setup flags to avoid make complaining about CC version |
906 cCompilerVersion = subprocess.Popen('CC -V', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True).stderr.readlines()[0] | 909 cCompilerVersion = subprocess.Popen('CC -V', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True).stderr.readlines()[0] |
907 if cCompilerVersion.startswith('CC: Sun C++'): | 910 if cCompilerVersion.startswith('CC: Sun C++'): |
908 compilerRev = cCompilerVersion.split(' ')[3] | 911 compilerRev = cCompilerVersion.split(' ')[3] |