SConstruct (5522:e56c3d89be79) SConstruct (5550:26231e06f86d)
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

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

327base_dir_list = [joinpath(ROOT, 'src')]
328if env['EXTRAS']:
329 base_dir_list += env['EXTRAS'].split(':')
330
331Export('base_dir_list')
332
333# M5_PLY is used by isa_parser.py to find the PLY package.
334env.Append(ENV = { 'M5_PLY' : str(Dir('ext/ply')) })
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

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

327base_dir_list = [joinpath(ROOT, 'src')]
328if env['EXTRAS']:
329 base_dir_list += env['EXTRAS'].split(':')
330
331Export('base_dir_list')
332
333# M5_PLY is used by isa_parser.py to find the PLY package.
334env.Append(ENV = { 'M5_PLY' : str(Dir('ext/ply')) })
335env['GCC'] = False
336env['SUNCC'] = False
337env['ICC'] = False
338env['GCC'] = subprocess.Popen(env['CXX'] + ' --version', shell=True,
339 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
335env['GCC'] = subprocess.Popen(env['CXX'] + ' --version', shell=True,
336 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
340 close_fds=True).communicate()[0].find('GCC') >= 0
337 close_fds=True).communicate()[0].find('g++') >= 0
341env['SUNCC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True,
342 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
343 close_fds=True).communicate()[0].find('Sun C++') >= 0
344env['ICC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True,
345 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
346 close_fds=True).communicate()[0].find('Intel') >= 0
347if env['GCC'] + env['SUNCC'] + env['ICC'] > 1:
348 print 'Error: How can we have two at the same time?'

--- 528 unchanged lines hidden ---
338env['SUNCC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True,
339 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
340 close_fds=True).communicate()[0].find('Sun C++') >= 0
341env['ICC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True,
342 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
343 close_fds=True).communicate()[0].find('Intel') >= 0
344if env['GCC'] + env['SUNCC'] + env['ICC'] > 1:
345 print 'Error: How can we have two at the same time?'

--- 528 unchanged lines hidden ---