[MacPorts] #56041: Update compiler selection for 10.6-10.8 with libc++
MacPorts
noreply at macports.org
Wed Mar 14 03:23:13 UTC 2018
#56041: Update compiler selection for 10.6-10.8 with libc++
--------------------------+----------------------------
Reporter: jmroot | Owner:
Type: enhancement | Status: new
Priority: Normal | Milestone: MacPorts 2.5.0
Component: base | Version: 2.4.2
Resolution: | Keywords:
Port: |
--------------------------+----------------------------
Comment (by kencu):
how about something like this in `portconfigure.tcl`:
{{{
# Determine which versions of clang we prefer
if {${configure.cxx_stdlib} eq "libc++"} {
# clang-3.5+ require libc++
lappend compilers macports-clang-5.0 macports-clang-4.0
if {${os.major} < 17} {
# The High Sierra SDK requires a toolchain that can apply
nullability to uuid_t
lappend compilers macports-clang-3.9
}
if {${os.major} < 16} {
# The Sierra SDK requires a toolchain that supports class
properties
lappend compilers macports-clang-3.7
}
+ if {${os.major} < 13} {
+ # for older systems configured to libc++, return a current
clang version
+ return clang-5.0 clang-4.0 clang-3.9
+ }
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/56041#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list