SConstruct (6016:9116be67b6d8) SConstruct (6017:7e310503019e)
1# -*- mode:python -*-
2
3# Copyright (c) 2009 The Hewlett-Packard Development Company
4# Copyright (c) 2004-2005 The Regents of The University of Michigan
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are

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

368if env['EXTRAS']:
369 extras_dir_list = env['EXTRAS'].split(':')
370else:
371 extras_dir_list = []
372
373Export('base_dir')
374Export('extras_dir_list')
375
1# -*- mode:python -*-
2
3# Copyright (c) 2009 The Hewlett-Packard Development Company
4# Copyright (c) 2004-2005 The Regents of The University of Michigan
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are

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

368if env['EXTRAS']:
369 extras_dir_list = env['EXTRAS'].split(':')
370else:
371 extras_dir_list = []
372
373Export('base_dir')
374Export('extras_dir_list')
375
376# the ext directory should be on the #includes path
377env.Append(CPPPATH=[Dir('ext')])
378
376# M5_PLY is used by isa_parser.py to find the PLY package.
377env.Append(ENV = { 'M5_PLY' : Dir('ext/ply').abspath })
378
379CXX_version = read_command([env['CXX'],'--version'], exception=False)
380CXX_V = read_command([env['CXX'],'-V'], exception=False)
381
382env['GCC'] = CXX_version and CXX_version.find('g++') >= 0
383env['SUNCC'] = CXX_V and CXX_V.find('Sun C++') >= 0

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

413 env['CXX'] = env['BATCH_CMD'] + ' ' + env['CXX']
414 env['AS'] = env['BATCH_CMD'] + ' ' + env['AS']
415 env['AR'] = env['BATCH_CMD'] + ' ' + env['AR']
416 env['RANLIB'] = env['BATCH_CMD'] + ' ' + env['RANLIB']
417
418if sys.platform == 'cygwin':
419 # cygwin has some header file issues...
420 env.Append(CCFLAGS=Split("-Wno-uninitialized"))
379# M5_PLY is used by isa_parser.py to find the PLY package.
380env.Append(ENV = { 'M5_PLY' : Dir('ext/ply').abspath })
381
382CXX_version = read_command([env['CXX'],'--version'], exception=False)
383CXX_V = read_command([env['CXX'],'-V'], exception=False)
384
385env['GCC'] = CXX_version and CXX_version.find('g++') >= 0
386env['SUNCC'] = CXX_V and CXX_V.find('Sun C++') >= 0

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

416 env['CXX'] = env['BATCH_CMD'] + ' ' + env['CXX']
417 env['AS'] = env['BATCH_CMD'] + ' ' + env['AS']
418 env['AR'] = env['BATCH_CMD'] + ' ' + env['AR']
419 env['RANLIB'] = env['BATCH_CMD'] + ' ' + env['RANLIB']
420
421if sys.platform == 'cygwin':
422 # cygwin has some header file issues...
423 env.Append(CCFLAGS=Split("-Wno-uninitialized"))
421env.Append(CPPPATH=[Dir('ext/dnet')])
422
423# Check for SWIG
424if not env.has_key('SWIG'):
425 print 'Error: SWIG utility not found.'
426 print ' Please install (see http://www.swig.org) and retry.'
427 Exit(1)
428
429# Check for appropriate SWIG version

--- 471 unchanged lines hidden ---
424
425# Check for SWIG
426if not env.has_key('SWIG'):
427 print 'Error: SWIG utility not found.'
428 print ' Please install (see http://www.swig.org) and retry.'
429 Exit(1)
430
431# Check for appropriate SWIG version

--- 471 unchanged lines hidden ---