26 | | |
27 | | # octave-interval requires <cfenv>, which is part of C++0x and newer. |
28 | | # require c++11 |
29 | | |
30 | | if {${configure.cxx_stdlib} eq "libstdc++"} { |
31 | | |
32 | | # *clang* when using libstdc++ do not seem to support C++11; |
33 | | # C++11 support seems to need GCC 4.7+ when using libstdc++; |
34 | | # could use C++0x support on GCC4.[56], but just ignore it since |
35 | | # there are newer compilers already in place as defaults. |
36 | | |
37 | | # Blacklist GCC compilers not supporting C++11 and all CLANG. |
38 | | # This is probably not necessary, but it's good practice. |
39 | | |
40 | | compiler.blacklist-append *clang* {*gcc-3*} {*gcc-4.[0-6]} |
41 | | |
42 | | # and whitelist those we do want to use. wish there were a better way. |
43 | | # these will be used in the order provided. |
44 | | |
45 | | compiler.whitelist macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7 |
46 | | |
47 | | } else { |
48 | | |
49 | | # using libc++; |
50 | | # Blacklist Clang not supporting C++11 in some form and all GCC. |
51 | | |
52 | | compiler.blacklist-append *gcc* {clang < 500} |
53 | | |
54 | | } |