SConstruct (3940:b87f85bb4275) | SConstruct (3942:edc24787baf6) |
---|---|
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 --- 205 unchanged lines hidden (view full) --- 214 stdout=subprocess.PIPE, stderr=subprocess.STDOUT, 215 close_fds=True).communicate()[0].find('GCC') >= 0 216env['SUNCC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True, 217 stdout=subprocess.PIPE, stderr=subprocess.STDOUT, 218 close_fds=True).communicate()[0].find('Sun C++') >= 0 219env['ICC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True, 220 stdout=subprocess.PIPE, stderr=subprocess.STDOUT, 221 close_fds=True).communicate()[0].find('Intel') >= 0 | 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 --- 205 unchanged lines hidden (view full) --- 214 stdout=subprocess.PIPE, stderr=subprocess.STDOUT, 215 close_fds=True).communicate()[0].find('GCC') >= 0 216env['SUNCC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True, 217 stdout=subprocess.PIPE, stderr=subprocess.STDOUT, 218 close_fds=True).communicate()[0].find('Sun C++') >= 0 219env['ICC'] = subprocess.Popen(env['CXX'] + ' -V', shell=True, 220 stdout=subprocess.PIPE, stderr=subprocess.STDOUT, 221 close_fds=True).communicate()[0].find('Intel') >= 0 |
222if env['GCC'] + env['SUNCC'] env['ICC'] > 1: | 222if env['GCC'] + env['SUNCC'] + env['ICC'] > 1: |
223 print 'Error: How can we have two at the same time?' 224 Exit(1) 225 226 227# Set up default C++ compiler flags 228if env['GCC']: 229 env.Append(CCFLAGS='-pipe') 230 env.Append(CCFLAGS='-fno-strict-aliasing') --- 435 unchanged lines hidden --- | 223 print 'Error: How can we have two at the same time?' 224 Exit(1) 225 226 227# Set up default C++ compiler flags 228if env['GCC']: 229 env.Append(CCFLAGS='-pipe') 230 env.Append(CCFLAGS='-fno-strict-aliasing') --- 435 unchanged lines hidden --- |