| 46 | |
| 47 | # A compiler supporting C++11 is required to build nghttp2 >= 0.7.12. |
| 48 | # The newer, the merrier. |
| 49 | # Compilers supporting C++11 are GCC >= 4.6 and clang >= 3.3. |
| 50 | # As we only support libc++, clang is required by implicitly. |
| 51 | # Blacklist all GCC compilers to not accidentally pull in libstdc++. |
| 52 | # We do not know what "cc" is, so blacklist it as well. |
| 53 | compiler.blacklist-append {*gcc*} {clang < 500} macports-clang-2.* \ |
| 54 | {macports-clang-3.[0-2]} cc |
| 55 | |
| 56 | platform darwin { |
| 57 | pre-configure { |
| 58 | if {${configure.cxx_stdlib} eq "libstdc++"} { |
| 59 | ui_error "This port does not support your selected MacPorts C++ runtime. libc++ must be selected and C++-based ports built against this." |
| 60 | error "libstdc++ unsupported." |
| 61 | } |
| 62 | } |
| 63 | } |