<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/6512d33b4aacaf83c638ddaa289a98a59da4bb92">https://github.com/macports/macports-ports/commit/6512d33b4aacaf83c638ddaa289a98a59da4bb92</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 6512d33b4aacaf83c638ddaa289a98a59da4bb92
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Mon Jan 10 09:29:04 2022 +0000

<span style='display:block; white-space:pre;color:#404040;'>    compilers PG: Use libc++ with GCC where supported
</span>---
 _resources/port1.0/group/compilers-1.0.tcl | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/compilers-1.0.tcl b/_resources/port1.0/group/compilers-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 3d14bdd36d1..a752ccfbca1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/compilers-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/compilers-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -149,7 +149,13 @@ foreach ver ${gcc_versions} {
</span>     set cdb(gcc$ver_nodot,fc)       ${prefix}/bin/gfortran-mp-$ver
     set cdb(gcc$ver_nodot,f77)      ${prefix}/bin/gfortran-mp-$ver
     set cdb(gcc$ver_nodot,f90)      ${prefix}/bin/gfortran-mp-$ver
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    set cdb(gcc$ver_nodot,cxx_stdlib) libstdc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # The devel port, and starting with version 12, GCC will support using -stdlib=libc++,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # so use it for improved compatibility with clang builds
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if { $ver eq "devel" || [vercmp ${ver} 12] >= 0 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set cdb(gcc$ver_nodot,cxx_stdlib) libc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set cdb(gcc$ver_nodot,cxx_stdlib) libstdc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span> }
 
 # build database of clang compiler attributes
</pre><pre style='margin:0'>

</pre>