Skip to content
Permalink
Browse files

portconfigure.tcl: use clang5+ for cxx11+ if not libc++

only macports-clang-5+ clang compilers will accept
macports-libstdc++

closes: https://trac.macports.org/ticket/59717
  • Loading branch information
kencu committed Jun 24, 2020
1 parent 28e5e2c commit 3ea1fb4eeb5b91940361d70634e003ec2fc572c5
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/port1.0/portconfigure.tcl
@@ -903,9 +903,19 @@ proc portconfigure::get_min_clang {} {
if {${compiler.cxx_standard} >= 2017} {
set min_value [max_version $min_value 5.0]
} elseif {${compiler.cxx_standard} >= 2014} {
set min_value [max_version $min_value 3.4]
if {[option configure.cxx_stdlib] eq "libc++"} {
set min_value [max_version $min_value 3.4]
} else {
# macports-libstdc++ only macports-clang compilers >= 5.0 support this
set min_value [max_version $min_value 5.0]
}
} elseif {${compiler.cxx_standard} >= 2011} {
set min_value [max_version $min_value 3.3]
if {[option configure.cxx_stdlib] eq "libc++"} {
set min_value [max_version $min_value 3.3]
} else {
# macports-libstdc++ only macports-clang compilers >= 5.0 support this
set min_value [max_version $min_value 5.0]
}
}
if {[vercmp ${compiler.openmp_version} 4.0] >= 0} {
set min_value [max_version $min_value 6.0]

0 comments on commit 3ea1fb4

Please sign in to comment.
You can’t perform that action at this time.