SConstruct (4973:bbbf2e4c4135) SConstruct (5199:a1809e673f69)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 222 unchanged lines hidden (view full) ---

231
232# I waffle on this setting... it does avoid a few painful but
233# unnecessary builds, but it also seems to make trivial builds take
234# noticeably longer.
235if False:
236 env.TargetSignatures('content')
237
238# M5_PLY is used by isa_parser.py to find the PLY package.
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 222 unchanged lines hidden (view full) ---

231
232# I waffle on this setting... it does avoid a few painful but
233# unnecessary builds, but it also seems to make trivial builds take
234# noticeably longer.
235if False:
236 env.TargetSignatures('content')
237
238# M5_PLY is used by isa_parser.py to find the PLY package.
239env.Append(ENV = { 'M5_PLY' : Dir('ext/ply') })
239env.Append(ENV = { 'M5_PLY' : str(Dir('ext/ply')) })
240env['GCC'] = False
241env['SUNCC'] = False
242env['ICC'] = False
243env['GCC'] = subprocess.Popen(env['CXX'] + ' --version', shell=True,
244 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
245 close_fds=True).communicate()[0].find('GCC') >= 0
246env['SUNCC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True,
247 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,

--- 23 unchanged lines hidden (view full) ---

271else:
272 print 'Error: Don\'t know what compiler options to use for your compiler.'
273 print ' Please fix SConstruct and src/SConscript and try again.'
274 Exit(1)
275
276if sys.platform == 'cygwin':
277 # cygwin has some header file issues...
278 env.Append(CCFLAGS=Split("-Wno-uninitialized"))
240env['GCC'] = False
241env['SUNCC'] = False
242env['ICC'] = False
243env['GCC'] = subprocess.Popen(env['CXX'] + ' --version', shell=True,
244 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
245 close_fds=True).communicate()[0].find('GCC') >= 0
246env['SUNCC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True,
247 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,

--- 23 unchanged lines hidden (view full) ---

271else:
272 print 'Error: Don\'t know what compiler options to use for your compiler.'
273 print ' Please fix SConstruct and src/SConscript and try again.'
274 Exit(1)
275
276if sys.platform == 'cygwin':
277 # cygwin has some header file issues...
278 env.Append(CCFLAGS=Split("-Wno-uninitialized"))
279env.Append(CPPPATH=[Dir('ext/dnet')])
279env.Append(CPPPATH=[str(Dir('ext/dnet'))])
280
281# Check for SWIG
282if not env.has_key('SWIG'):
283 print 'Error: SWIG utility not found.'
284 print ' Please install (see http://www.swig.org) and retry.'
285 Exit(1)
286
287# Check for appropriate SWIG version

--- 445 unchanged lines hidden ---
280
281# Check for SWIG
282if not env.has_key('SWIG'):
283 print 'Error: SWIG utility not found.'
284 print ' Please install (see http://www.swig.org) and retry.'
285 Exit(1)
286
287# Check for appropriate SWIG version

--- 445 unchanged lines hidden ---