diff options
Diffstat (limited to 'src/systemc/SConsopts')
-rw-r--r-- | src/systemc/SConsopts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/systemc/SConsopts b/src/systemc/SConsopts index 172de5724..4e57fd4c1 100644 --- a/src/systemc/SConsopts +++ b/src/systemc/SConsopts @@ -28,20 +28,18 @@ Import('*') from m5.util import compareVersions -from m5.util.terminal import termcap + +from gem5_scons import warning def use_systemc_check(env, warn=False): if ('GCC_VERSION' in env and compareVersions(env['GCC_VERSION'], '5.0') < 0): if warn: - print(termcap.Yellow + termcap.Bold + - 'Warning: Systemc may not work on gcc versions less ' - 'than 5.0.' + termcap.Normal) + warning('Systemc may not work on gcc versions less than 5.0.') return False elif env['PLATFORM'] == 'darwin': if warn: - print(termcap.Yellow + termcap.Bold + - 'Warning: Systemc may not work on Mac OS.' + termcap.Normal) + warning('Warning: Systemc may not work on Mac OS.') return False return True |