<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3d5c7c66e7fc94fb21e0b67e8ec9d28fd0217c44">https://github.com/macports/macports-ports/commit/3d5c7c66e7fc94fb21e0b67e8ec9d28fd0217c44</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 3d5c7c66e7fc94fb21e0b67e8ec9d28fd0217c44
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Fri Dec 30 20:10:21 2022 -0700
<span style='display:block; white-space:pre;color:#404040;'> llvm/clang/lldb-devel: update to 20221220
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Build with Python 3.11 since it is now the default in the python PG
</span>---
lang/llvm-devel/Portfile | 19 ++++++++++---------
...ort-Unix-Path.inc-define-COPYFILE_CLONE-if-n.patch | 10 +++++-----
...9-10.6-and-less-use-emulated-TLS-before-10.7.patch | 6 +++---
3 files changed, 18 insertions(+), 17 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/Portfile b/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2ed44cf31f2..e48661714ac 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,17 +24,17 @@ maintainers {jeremyhu @jeremyhu} {jonesc @cjones051073} openmaintain
</span> # for devel
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set llvm-commit 02b3a358926e7bbcac9226cbecbfc3067c2ad61b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set date 20220731
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set llvm-commit bf94eac6a3f7c5cd8941956d44c15524fa3751bd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set date 20221220
</span> set llvm_version devel
set clang_exe_version 16
github.setup llvm llvm-project ${llvm-commit}
version ${date}-[string range ${llvm-commit} 0 7]
default_variants-append +assertions
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 b50e946f229079aae0e3e3fe59f6bbaf51ff5daa \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 3b352c23468299e671e3223bd219af8a800f529394ed7fd8767c524223e48a8b \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 166265364
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 c2bdd2d14a9566a270777577f58e9889f76de754 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 2b0144324d61669a6a102c7f1c74c30ae8a1ec1d95def06449d102c6ca02c9f3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 174353429
</span>
# For release
#set llvm_version 14
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -106,7 +106,7 @@ if {[string match macports-clang-* ${configure.compiler}]} {
</span> configure.args-append -DCMAKE_LIBTOOL=${prefix}/bin/libtool
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set py_ver 3.10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver 3.11
</span> set py_ver_nodot [string map {. {}} ${py_ver}]
depends_build-append port:python${py_ver_nodot} \
port:py${py_ver_nodot}-pygments \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -261,7 +261,8 @@ if { ${subport} eq "clang-${llvm_version}" } {
</span> select.file ${filespath}/mp-${subport}
configure.args-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DLLVM_ENABLE_PROJECTS="clang\;clang-tools-extra\;compiler-rt\;libcxx\;libcxxabi\;lld" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_ENABLE_PROJECTS="clang\;clang-tools-extra\;compiler-rt\;lld" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_ENABLE_RUNTIMES="libcxx\;libcxxabi" \
</span> -DLIBCXX_ENABLE_SHARED=ON \
-DLIBCXX_INSTALL_LIBRARY=ON
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -271,8 +272,8 @@ if { ${subport} eq "clang-${llvm_version}" } {
</span> system "cd ${destroot.dir}/tools/clang && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
system "cd ${destroot.dir}/tools/lld && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
system "cd ${destroot.dir}/projects/compiler-rt && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${destroot.dir}/projects/libcxx && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${destroot.dir}/projects/libcxxabi && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "cd ${destroot.dir}/runtimes/runtimes-bins/libcxx && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "cd ${destroot.dir}/runtimes/runtimes-bins/libcxxabi && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
</span> }
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/0009-lib-Support-Unix-Path.inc-define-COPYFILE_CLONE-if-n.patch b/lang/llvm-devel/files/0009-lib-Support-Unix-Path.inc-define-COPYFILE_CLONE-if-n.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 08bb497d318..1b56a93567f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/files/0009-lib-Support-Unix-Path.inc-define-COPYFILE_CLONE-if-n.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/0009-lib-Support-Unix-Path.inc-define-COPYFILE_CLONE-if-n.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,13 +11,13 @@ diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
</span> index a18650aadb6e..3fefd4e7ae91 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -39,6 +39,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <mach-o/dyld.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <sys/attr.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -37,6 +37,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef __APPLE__
</span> #include <copyfile.h>
+#ifndef COPYFILE_CLONE
+#define COPYFILE_CLONE (1<<24)
+#endif
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <mach-o/dyld.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/attr.h>
</span> #if __has_include(<sys/clonefile.h>)
<span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <sys/clonefile.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/0019-10.6-and-less-use-emulated-TLS-before-10.7.patch b/lang/llvm-devel/files/0019-10.6-and-less-use-emulated-TLS-before-10.7.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 9b84a6e2bde..f343cfc63f8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/files/0019-10.6-and-less-use-emulated-TLS-before-10.7.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/0019-10.6-and-less-use-emulated-TLS-before-10.7.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,9 +42,9 @@ index 50fb30a95cbb..1df40230e8f1 100644
</span> // We're assuming that the destructor function is something we can
diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h
index eed315c929ad..649b35f94307 100644
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- a/llvm/include/llvm/ADT/Triple.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ b/llvm/include/llvm/ADT/Triple.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -809,7 +809,7 @@ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/llvm/include/llvm/TargetParser/Triple.h 2022-12-20 15:29:16
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/llvm/include/llvm/TargetParser/Triple.h 2022-12-30 13:17:19
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -946,7 +946,7 @@
</span>
/// Tests whether the target uses emulated TLS as default.
bool hasDefaultEmulatedTLS() const {
</pre><pre style='margin:0'>
</pre>