SConscript (12046:35899b7da75f) | SConscript (12563:8d59ed22ae79) |
---|---|
1# Copyright (c) 2017, TU Dresden 2# Copyright (c) 2017, University of Kaiserslautern 3# All rights reserved. 4 5# Permission is hereby granted, free of charge, to any person obtaining a copy 6# of this software and associated documentation files (the "Software"), to deal 7# in the Software without restriction, including without limitation the rights 8# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --- 9 unchanged lines hidden (view full) --- 18# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21# SOFTWARE. 22# 23# Authors: Christian Menard 24# Matthias Jung 25 | 1# Copyright (c) 2017, TU Dresden 2# Copyright (c) 2017, University of Kaiserslautern 3# All rights reserved. 4 5# Permission is hereby granted, free of charge, to any person obtaining a copy 6# of this software and associated documentation files (the "Software"), to deal 7# in the Software without restriction, including without limitation the rights 8# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --- 9 unchanged lines hidden (view full) --- 18# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21# SOFTWARE. 22# 23# Authors: Christian Menard 24# Matthias Jung 25 |
26from __future__ import print_function 27 |
|
26import os 27from m5.util.terminal import get_termcap 28 29Import('main') 30systemc = main.Clone() 31 32build_root = Dir('.').abspath 33src_root = Dir('.').srcdir.abspath --- 18 unchanged lines hidden (view full) --- 52 systemc['QT_ARCH'] = 'i386' 53 arch = 'i386' 54elif conf.CheckDeclaration('__x86_64__'): 55 systemc['COROUTINE_LIB'] = 'qt' 56 systemc['QT_ARCH'] = 'iX86_64' 57 arch = 'x86_64' 58else: 59 termcap = get_termcap(GetOption('use_colors')) | 28import os 29from m5.util.terminal import get_termcap 30 31Import('main') 32systemc = main.Clone() 33 34build_root = Dir('.').abspath 35src_root = Dir('.').srcdir.abspath --- 18 unchanged lines hidden (view full) --- 54 systemc['QT_ARCH'] = 'i386' 55 arch = 'i386' 56elif conf.CheckDeclaration('__x86_64__'): 57 systemc['COROUTINE_LIB'] = 'qt' 58 systemc['QT_ARCH'] = 'iX86_64' 59 arch = 'x86_64' 60else: 61 termcap = get_termcap(GetOption('use_colors')) |
60 print termcap.Yellow + termcap.Bold + \ 61 "Warning: Unrecognized architecture for systemc." + termcap.Normal | 62 print(termcap.Yellow + termcap.Bold + 63 "Warning: Unrecognized architecture for systemc." + termcap.Normal) |
62 63conf.Finish() 64 65if systemc['COROUTINE_LIB'] == 'pthreads': 66 systemc.Prepend(CXXFLAGS=['-DSC_USE_PTHREADS']) 67 68systemc_files = [] 69def SystemCSource(*args): --- 14 unchanged lines hidden --- | 64 65conf.Finish() 66 67if systemc['COROUTINE_LIB'] == 'pthreads': 68 systemc.Prepend(CXXFLAGS=['-DSC_USE_PTHREADS']) 69 70systemc_files = [] 71def SystemCSource(*args): --- 14 unchanged lines hidden --- |