SConstruct (7457:95160760db54) SConstruct (7618:47d9409b2b7f)
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

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

356 Exit(1)
357
358# Set up default C++ compiler flags
359if main['GCC']:
360 main.Append(CCFLAGS='-pipe')
361 main.Append(CCFLAGS='-fno-strict-aliasing')
362 main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])
363 main.Append(CXXFLAGS='-Wno-deprecated')
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

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

356 Exit(1)
357
358# Set up default C++ compiler flags
359if main['GCC']:
360 main.Append(CCFLAGS='-pipe')
361 main.Append(CCFLAGS='-fno-strict-aliasing')
362 main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])
363 main.Append(CXXFLAGS='-Wno-deprecated')
364 # Read the GCC version to check for versions with bugs
365 # Note CCVERSION doesn't work here because it is run with the CC
366 # before we override it from the command line
367 gcc_version = readCommand([main['CXX'], '-dumpversion'], exception=False)
368 if not compareVersions(gcc_version, '4.4.1') or \
369 not compareVersions(gcc_version, '4.4.2'):
370 print 'Info: Tree vectorizer in GCC 4.4.1 & 4.4.2 is buggy, disabling.'
371 main.Append(CCFLAGS='-fno-tree-vectorize')
364elif main['ICC']:
365 pass #Fix me... add warning flags once we clean up icc warnings
366elif main['SUNCC']:
367 main.Append(CCFLAGS='-Qoption ccfe')
368 main.Append(CCFLAGS='-features=gcc')
369 main.Append(CCFLAGS='-features=extensions')
370 main.Append(CCFLAGS='-library=stlport4')
371 main.Append(CCFLAGS='-xar')

--- 518 unchanged lines hidden ---
372elif main['ICC']:
373 pass #Fix me... add warning flags once we clean up icc warnings
374elif main['SUNCC']:
375 main.Append(CCFLAGS='-Qoption ccfe')
376 main.Append(CCFLAGS='-features=gcc')
377 main.Append(CCFLAGS='-features=extensions')
378 main.Append(CCFLAGS='-library=stlport4')
379 main.Append(CCFLAGS='-xar')

--- 518 unchanged lines hidden ---