<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a4325973d1ccb3a6d213001fbd56d5292b645c8d">https://github.com/macports/macports-ports/commit/a4325973d1ccb3a6d213001fbd56d5292b645c8d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new a4325973d1c clang-11-bootstrap: build by bootstrap before 10.12 only
</span>a4325973d1c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a4325973d1ccb3a6d213001fbd56d5292b645c8d
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Wed Aug 10 11:49:16 2022 +0200
<span style='display:block; white-space:pre;color:#404040;'> clang-11-bootstrap: build by bootstrap before 10.12 only
</span>---
lang/clang-11-bootstrap/Portfile | 49 ++++++++++++++++++++++++----------------
1 file changed, 29 insertions(+), 20 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/clang-11-bootstrap/Portfile b/lang/clang-11-bootstrap/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b5d50021329..ed0f54567a9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/clang-11-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/clang-11-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,9 +45,6 @@ depends_build-append \
</span> depends_skip_archcheck-append \
python27-bootstrap
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gcc10-bootstrap
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # Use cmake-bootstrap
depends_build-replace \
path:bin/cmake:cmake port:cmake-bootstrap
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -146,10 +143,6 @@ configure.pre_args-delete \
</span> configure.pre_args-delete \
-DCMAKE_INSTALL_NAME_DIR="${cmake.install_prefix}/lib"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# prevent it from linking against gcc's libstdc++.6.dylib and libgcc_s.1.1.dylib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -static-libstdc++ -static-libgcc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> platform darwin {
if {${os.major} == 14} {
# Building Xray forces build of sanitizer_common, even if
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -258,23 +251,39 @@ if {${os.major} < 18 || ${os.major} > 19} {
</span> default_variants-append +universal
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2011
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-pre-configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file mkdir ${workpath}/bins
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# macOS 10.12 the first one which toolchain can build it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 16} {
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set gcc [open "${workpath}/bins/gcc" w 0755]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts ${gcc} "#!/bin/sh"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts ${gcc} "arch -arch $\{BUILD_ARCH:-${build_arch}\} ${prefix}/libexec/gcc10-bootstrap/bin/gcc \$@"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- close ${gcc}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.compiler.add_deps \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ no
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set gxx [open "${workpath}/bins/g++" w 0755]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts ${gxx} "#!/bin/sh"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts ${gxx} "arch -arch $\{BUILD_ARCH:-${build_arch}\} ${prefix}/libexec/gcc10-bootstrap/bin/g++ \$@"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- close ${gxx}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gcc10-bootstrap
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cc ${workpath}/bins/gcc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cxx ${workpath}/bins/g++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${workpath}/bins
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set gcc [open "${workpath}/bins/gcc" w 0755]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${gcc} "#!/bin/sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${gcc} "arch -arch $\{BUILD_ARCH:-${build_arch}\} ${prefix}/libexec/gcc10-bootstrap/bin/gcc \$@"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ close ${gcc}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set gxx [open "${workpath}/bins/g++" w 0755]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${gxx} "#!/bin/sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${gxx} "arch -arch $\{BUILD_ARCH:-${build_arch}\} ${prefix}/libexec/gcc10-bootstrap/bin/g++ \$@"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ close ${gxx}
</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;'>+ configure.cc ${workpath}/bins/gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxx ${workpath}/bins/g++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # prevent it from linking against gcc's libstdc++.6.dylib and libgcc_s.1.1.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -static-libstdc++ -static-libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
if {${universal_possible} && [variant_isset universal]} {
foreach arch ${universal_archs_supported} {
</pre><pre style='margin:0'>
</pre>