<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5a35b8beab1b1bf509ee8c5aa812f4217ee3187a">https://github.com/macports/macports-ports/commit/5a35b8beab1b1bf509ee8c5aa812f4217ee3187a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5a35b8beab1b1bf509ee8c5aa812f4217ee3187a
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Thu Jun 30 15:26:19 2022 +0100
<span style='display:block; white-space:pre;color:#404040;'> gcc12: Support Darwin10 and newer. Use clang-{11,14} for stdlib=libc++ support
</span>---
lang/gcc12/Portfile | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc12/Portfile b/lang/gcc12/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0512eeb4ba9..4985f31a329 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc12/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc12/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,10 +19,8 @@ maintainers nomaintainer
</span> license {GPL-3+ Permissive}
description The GNU compiler collection
<span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description The GNU compiler collection, including front ends for \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- C, C++, Objective-C, Objective-C++ and Fortran. \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- This is an !experimental!, !BETA! version \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- built from GCC snapshots.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}, including front ends for \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ C, C++, Objective-C, Objective-C++ and Fortran.
</span>
version 12.1.0
revision 0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -186,11 +184,15 @@ variant enable_stdlib_flag description {Enable stdlib command line flag to selec
</span> # which is then used as the default search location when `-stdlib=libc++`
# is given. Therefore to have consistency across various OS versions, and to enable
# modern c++ standards, use a recent macports clang port to provide this.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set mp_clang_ver 13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mp_clang_ver 11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mp_clang_ver 14
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> if {${subport} eq ${name}} {
depends_run-append port:clang-${mp_clang_ver}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --with-gxx-libcxx-include-dir="${prefix}/libexec/llvm-${mp_clang_ver}/include/c++/v1"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-gxx-libcxx-include-dir="${prefix}/libexec/llvm-${mp_clang_ver}/include/c++/v1"
</span> }
default_variants-append +enable_stdlib_flag
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -213,8 +215,8 @@ build.target bootstrap-lean
</span> destroot.target install install-info-host
# Is this gcc release supported here.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- known_fail yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.platform} eq "darwin" && ${os.major} < 10 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ known_fail yes
</span> pre-fetch {
ui_error "${name} ${version} is not supported on Darwin ${os.major}"
return -code error "incompatible OS X version"
</pre><pre style='margin:0'>
</pre>