36 | | if {${configure.cxx_stdlib} eq "libstdc++"} { |
37 | | |
38 | | # *clang* when using libstdc++ do not seem to support C++11; |
39 | | # C++11 support seems to need GCC 4.7+ when using libstdc++; |
40 | | # could use C++0x support on GCC4.[56], but just ignore it since |
41 | | # there are newer compilers already in place as defaults. |
42 | | |
43 | | # Blacklist GCC compilers not supporting C++11 and all CLANG. |
44 | | # This is probably not necessary, but it's good practice. |
45 | | |
46 | | compiler.blacklist-append *clang* {*gcc-3*} {*gcc-4.[0-6]} |
47 | | |
48 | | # and whitelist GCC compilers that support C++11. wish there were |
49 | | # a better way. these will be used in the order provided. |
50 | | |
51 | | compiler.whitelist macports-gcc-5 macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7 |
52 | | |
53 | | } else { |
54 | | |
55 | | # using libc++; |
56 | | # Blacklist Clang not supporting C++11 in some form and all GCC. |
57 | | # Just use the cxx11 PortGroup for this specific case. |
58 | | |
59 | | PortGroup cxx11 1.0 |
60 | | |
61 | | } |
62 | | |