summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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()