SConstruct (8946:fb6c89334b86) | SConstruct (8947:217fbc57df05) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2011 Advanced Micro Devices, Inc. 4# Copyright (c) 2009 The Hewlett-Packard Development Company 5# Copyright (c) 2004-2005 The Regents of The University of Michigan 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without --- 106 unchanged lines hidden (view full) --- 115extra_python_paths = [ 116 Dir('src/python').srcnode().abspath, # gem5 includes 117 Dir('ext/ply').srcnode().abspath, # ply is used by several files 118 ] 119 120sys.path[1:1] = extra_python_paths 121 122from m5.util import compareVersions, readCommand | 1# -*- mode:python -*- 2 3# Copyright (c) 2011 Advanced Micro Devices, Inc. 4# Copyright (c) 2009 The Hewlett-Packard Development Company 5# Copyright (c) 2004-2005 The Regents of The University of Michigan 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without --- 106 unchanged lines hidden (view full) --- 115extra_python_paths = [ 116 Dir('src/python').srcnode().abspath, # gem5 includes 117 Dir('ext/ply').srcnode().abspath, # ply is used by several files 118 ] 119 120sys.path[1:1] = extra_python_paths 121 122from m5.util import compareVersions, readCommand |
123from m5.util.terminal import get_termcap |
|
123 124help_texts = { 125 "options" : "", 126 "global_vars" : "", 127 "local_vars" : "" 128} 129 130Export("help_texts") --- 33 unchanged lines hidden (view full) --- 164 help='Override which build_opts file to use for defaults') 165AddLocalOption('--ignore-style', dest='ignore_style', action='store_true', 166 help='Disable style checking hooks') 167AddLocalOption('--update-ref', dest='update_ref', action='store_true', 168 help='Update test reference outputs') 169AddLocalOption('--verbose', dest='verbose', action='store_true', 170 help='Print full tool command lines') 171 | 124 125help_texts = { 126 "options" : "", 127 "global_vars" : "", 128 "local_vars" : "" 129} 130 131Export("help_texts") --- 33 unchanged lines hidden (view full) --- 165 help='Override which build_opts file to use for defaults') 166AddLocalOption('--ignore-style', dest='ignore_style', action='store_true', 167 help='Disable style checking hooks') 168AddLocalOption('--update-ref', dest='update_ref', action='store_true', 169 help='Update test reference outputs') 170AddLocalOption('--verbose', dest='verbose', action='store_true', 171 help='Print full tool command lines') 172 |
172use_colors = GetOption('use_colors') 173if use_colors: 174 from m5.util.terminal import termcap 175elif use_colors is None: 176 # option unspecified; default behavior is to use colors iff isatty 177 from m5.util.terminal import tty_termcap as termcap 178else: 179 from m5.util.terminal import no_termcap as termcap | 173termcap = get_termcap(GetOption('use_colors')) |
180 181######################################################################## 182# 183# Set up the main build environment. 184# 185######################################################################## 186use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH', 'PATH', 187 'PYTHONPATH', 'RANLIB' ]) --- 269 unchanged lines hidden (view full) --- 457 com_pfx_len = len(com_pfx) 458 def fmt(files): 459 f = map(lambda s: s[com_pfx_len:], files) 460 return ', '.join(f) 461 return self.format % (com_pfx, fmt(srcs), fmt(tgts)) 462 463Export('Transform') 464 | 174 175######################################################################## 176# 177# Set up the main build environment. 178# 179######################################################################## 180use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH', 'PATH', 181 'PYTHONPATH', 'RANLIB' ]) --- 269 unchanged lines hidden (view full) --- 451 com_pfx_len = len(com_pfx) 452 def fmt(files): 453 f = map(lambda s: s[com_pfx_len:], files) 454 return ', '.join(f) 455 return self.format % (com_pfx, fmt(srcs), fmt(tgts)) 456 457Export('Transform') 458 |
459# enable the regression script to use the termcap 460main['TERMCAP'] = termcap |
|
465 466if GetOption('verbose'): 467 def MakeAction(action, string, *args, **kwargs): 468 return Action(action, *args, **kwargs) 469else: 470 MakeAction = Action 471 main['CCCOMSTR'] = Transform("CC") 472 main['CXXCOMSTR'] = Transform("CXX") --- 574 unchanged lines hidden --- | 461 462if GetOption('verbose'): 463 def MakeAction(action, string, *args, **kwargs): 464 return Action(action, *args, **kwargs) 465else: 466 MakeAction = Action 467 main['CCCOMSTR'] = Transform("CC") 468 main['CXXCOMSTR'] = Transform("CXX") --- 574 unchanged lines hidden --- |