We're searching for g++ incorrectly
authorNathan Binkert <nate@binkert.org>
Fri, 19 Sep 2008 16:42:55 +0000 (09:42 -0700)
committerNathan Binkert <nate@binkert.org>
Fri, 19 Sep 2008 16:42:55 +0000 (09:42 -0700)
SConstruct

index f7798b25e4f00be3666671a5c5e0246113920011..cec2d5173049768482c7daaad40a84f625bced15 100644 (file)
@@ -332,12 +332,9 @@ Export('base_dir_list')
 
 # M5_PLY is used by isa_parser.py to find the PLY package.
 env.Append(ENV = { 'M5_PLY' : str(Dir('ext/ply')) })
-env['GCC'] = False
-env['SUNCC'] = False
-env['ICC'] = False
 env['GCC'] = subprocess.Popen(env['CXX'] + ' --version', shell=True,
         stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
-        close_fds=True).communicate()[0].find('GCC') >= 0
+        close_fds=True).communicate()[0].find('g++') >= 0
 env['SUNCC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True,
         stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
         close_fds=True).communicate()[0].find('Sun C++') >= 0