SConstruct (9045:eb2975c014cd) SConstruct (9068:d421f95f92d9)
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

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

533 main.Append(CCFLAGS=['-Wno-self-assign'])
534 # Ruby makes frequent use of extraneous parantheses in the printing
535 # of if-statements
536 main.Append(CCFLAGS=['-Wno-parentheses'])
537
538 if compareVersions(clang_version, "3") >= 0:
539 main.Append(CXXFLAGS=['-std=c++0x'])
540else:
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

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

533 main.Append(CCFLAGS=['-Wno-self-assign'])
534 # Ruby makes frequent use of extraneous parantheses in the printing
535 # of if-statements
536 main.Append(CCFLAGS=['-Wno-parentheses'])
537
538 if compareVersions(clang_version, "3") >= 0:
539 main.Append(CXXFLAGS=['-std=c++0x'])
540else:
541 print 'Error: Don\'t know what compiler options to use for your compiler.'
542 print ' Please fix SConstruct and src/SConscript and try again.'
541 print termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal,
542 print "Don't know what compiler options to use for your compiler."
543 print termcap.Yellow + ' compiler:' + termcap.Normal, main['CXX']
544 print termcap.Yellow + ' version:' + termcap.Normal,
545 if not CXX_version:
546 print termcap.Yellow + termcap.Bold + "COMMAND NOT FOUND!" +\
547 termcap.Normal
548 else:
549 print CXX_version.replace('\n', '<nl>')
550 print " If you're trying to use a compiler other than GCC, ICC, SunCC,"
551 print " or clang, there appears to be something wrong with your"
552 print " environment."
553 print " "
554 print " If you are trying to use a compiler other than those listed"
555 print " above you will need to ease fix SConstruct and "
556 print " src/SConscript to support that compiler."
543 Exit(1)
544
545# Set up common yacc/bison flags (needed for Ruby)
546main['YACCFLAGS'] = '-d'
547main['YACCHXXFILESUFFIX'] = '.hh'
548
549# Do this after we save setting back, or else we'll tack on an
550# extra 'qdo' every time we run scons.

--- 498 unchanged lines hidden ---
557 Exit(1)
558
559# Set up common yacc/bison flags (needed for Ruby)
560main['YACCFLAGS'] = '-d'
561main['YACCHXXFILESUFFIX'] = '.hh'
562
563# Do this after we save setting back, or else we'll tack on an
564# extra 'qdo' every time we run scons.

--- 498 unchanged lines hidden ---