summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2018-12-02 18:39:32 +0000
committerNikos Nikoleris <nikos.nikoleris@arm.com>2018-12-19 09:00:20 +0000
commitf256a2c44f2001a4c3cde4350a857f3d6f105b74 (patch)
tree91773686d4e345e77186afb16be43f54319b1444
parent0be6953fee765c08c952462938f133fed181166e (diff)
downloadgem5-f256a2c44f2001a4c3cde4350a857f3d6f105b74.tar.xz
scons: Disable systemc on Mac OS
LLVM on Mac OS up until version 10.0.0 doesn't seem to support the attribute for weak linking and fails to compile. Additionally, even the basic example tests fail. Therefore, this change disables systemc by default on Mac OS until we address these issues. Change-Id: Iaa6360ec61317e01f4e645af8b509961b3144282 Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/14818 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
-rw-r--r--src/systemc/SConscript15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/systemc/SConscript b/src/systemc/SConscript
index 7317b3a82..c820b457e 100644
--- a/src/systemc/SConscript
+++ b/src/systemc/SConscript
@@ -31,12 +31,17 @@ from m5.util import compareVersions
from m5.util.terminal import termcap
if env['USE_SYSTEMC']:
- if 'GCC_VERSION' in env and \
- compareVersions(env['GCC_VERSION'], '5.0') < 0:
+ if ('GCC_VERSION' in env and \
+ compareVersions(env['GCC_VERSION'], '5.0') < 0) or \
+ env['PLATFORM'] == 'darwin':
- print(termcap.Yellow + termcap.Bold +
- 'Warning: Disabling systemc on gcc versions less than 5.0.' +
- termcap.Normal)
+ if env['PLATFORM'] == 'darwin':
+ print(termcap.Yellow + termcap.Bold +
+ 'Warning: Disabling systemc on Mac OS.' + termcap.Normal)
+ else:
+ print(termcap.Yellow + termcap.Bold +
+ 'Warning: Disabling systemc on gcc versions less than 5.0.' +
+ termcap.Normal)
env['USE_SYSTEMC'] = False
Return()