regress (8969:b9f4e3884951) | regress (9843:1ddfb0679c75) |
---|---|
1#! /usr/bin/env python 2# Copyright (c) 2005-2007 The Regents of The University of Michigan 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 141 unchanged lines hidden (view full) --- 150 if options.jobs == 0: 151 options.jobs = cpu_count() 152 scons_opts += ' -j %d' % options.jobs 153if options.keep_going: 154 scons_opts += ' -k' 155if options.update_ref: 156 scons_opts += ' --update-ref' 157 | 1#! /usr/bin/env python 2# Copyright (c) 2005-2007 The Regents of The University of Michigan 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 141 unchanged lines hidden (view full) --- 150 if options.jobs == 0: 151 options.jobs = cpu_count() 152 scons_opts += ' -j %d' % options.jobs 153if options.keep_going: 154 scons_opts += ' -k' 155if options.update_ref: 156 scons_opts += ' --update-ref' 157 |
158# We generally compile gem5.fast only to make sure it compiles OK; 159# it's not very useful to run as a regression test since assertions 160# are disabled. Thus there's not much point spending time on 161# link-time optimization. 162scons_opts += ' --no-lto' 163 |
|
158cmd = 'scons --ignore-style %s %s' % (scons_opts, ' '.join(targets)) 159if options.no_exec: 160 print cmd 161else: 162 system(cmd) 163 sys.exit(0) | 164cmd = 'scons --ignore-style %s %s' % (scons_opts, ' '.join(targets)) 165if options.no_exec: 166 print cmd 167else: 168 system(cmd) 169 sys.exit(0) |