# HG changeset patch # User Laurent Daynes # Date 1352486512 -3600 # Node ID 602ee4d1db6125c7396a9a8a73fed8a7ed8d5c89 # Parent 6d1870a7554a0465aa18e97981255b5f0e6437d9 added setup of ENFORCE_COMPILER_REV and ENFORCE_CC_COMPILER_REV when using sunstudio compilers on Solaris to avoid build complaint from HotSpot makefiles. diff -r 6d1870a7554a -r 602ee4d1db61 mx/commands.py --- a/mx/commands.py Fri Nov 09 16:28:38 2012 +0100 +++ b/mx/commands.py Fri Nov 09 19:41:52 2012 +0100 @@ -542,7 +542,13 @@ env.setdefault('HOTSPOT_BUILD_JOBS', str(cpus)) env['ALT_BOOTDIR'] = jdk env.setdefault('INSTALL', 'y') - + 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] + if cCompilerVersion.startswith('CC: Sun C++') : + compilerRev = cCompilerVersion.split(' ')[3] + env.setdefault('ENFORCE_COMPILER_REV', compilerRev); + env.setdefault('ENFORCE_CC_COMPILER_REV', compilerRev); # This removes the need to unzip the *.diz files before debugging in gdb env.setdefault('ZIP_DEBUGINFO_FILES', '0')