<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/3fd9ed89934c05474ee2bc0d21480728ddad991e">https://github.com/macports/macports-ports/commit/3fd9ed89934c05474ee2bc0d21480728ddad991e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 3fd9ed89934c05474ee2bc0d21480728ddad991e
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Mon Jul 8 11:18:12 2024 +0100
<span style='display:block; white-space:pre;color:#404040;'> gcc12: switch arm GCC triple to aarch64-apple-darwinN
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://github.com/iains/gcc-14-branch/issues/7
</span>---
lang/gcc12/Portfile | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 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 4808bf19395..4773702c5b6 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;'>@@ -23,7 +23,7 @@ long_description {*}${description}, including front ends for \
</span>
# Remember to reset all revision increments below to 0 on new versions
version 12.4.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
set libgccname lib${name}
subport ${libgccname} { revision [ expr ${revision} + 0 ] }
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -69,8 +69,16 @@ license_noconflict gmp mpfr ppl libmpc zlib
</span>
set major [lindex [split ${version} .-] 0]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+proc gcc_arch {arch} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch ${arch} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ arm64 {return aarch64}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default {return ${arch}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> platform darwin {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set gcc_triple [gcc_arch ${build_arch}]-apple-darwin${os.major}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.pre_args-append --build=${gcc_triple}
</span> }
set gcc_configure_langs {c c++ objc obj-c++ lto fortran}
</pre><pre style='margin:0'>
</pre>