SConstruct (9657:0e15490aad4f) SConstruct (9740:101441a7b420)
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

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

719 Exit(1)
720
721min_swig_version = '1.3.34'
722if compareVersions(swig_version[2], min_swig_version) < 0:
723 print 'Error: SWIG version', min_swig_version, 'or newer required.'
724 print ' Installed version:', swig_version[2]
725 Exit(1)
726
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

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

719 Exit(1)
720
721min_swig_version = '1.3.34'
722if compareVersions(swig_version[2], min_swig_version) < 0:
723 print 'Error: SWIG version', min_swig_version, 'or newer required.'
724 print ' Installed version:', swig_version[2]
725 Exit(1)
726
727if swig_version[2] == "2.0.9":
727if swig_version[2] in ["2.0.9", "2.0.10"]:
728 print '\n' + termcap.Yellow + termcap.Bold + \
728 print '\n' + termcap.Yellow + termcap.Bold + \
729 'Warning: SWIG version 2.0.9 sometimes generates broken code.\n' + \
729 'Warning: SWIG version 2.0.9/10 sometimes generates broken code.\n' + \
730 termcap.Normal + \
731 'This problem only affects some platforms and some Python\n' + \
732 'versions. See the following SWIG bug report for details:\n' + \
733 'http://sourceforge.net/p/swig/bugs/1297/\n'
734
735
736# Set up SWIG flags & scanner
737swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')

--- 531 unchanged lines hidden ---
730 termcap.Normal + \
731 'This problem only affects some platforms and some Python\n' + \
732 'versions. See the following SWIG bug report for details:\n' + \
733 'http://sourceforge.net/p/swig/bugs/1297/\n'
734
735
736# Set up SWIG flags & scanner
737swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')

--- 531 unchanged lines hidden ---