<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3f03093e264ea484508dbbcc6f8cbc14b18a23df">https://github.com/macports/macports-ports/commit/3f03093e264ea484508dbbcc6f8cbc14b18a23df</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 3f03093 llvm-7.0: fix build on 10.6
</span>3f03093 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 3f03093e264ea484508dbbcc6f8cbc14b18a23df
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Tue Sep 4 22:43:09 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> llvm-7.0: fix build on 10.6
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> also fixes build of clang-7.0
</span>---
lang/llvm-7.0/Portfile | 4 ++++
...ssues-pre-Lion-due-to-missing-a-strnlen-d.patch | 26 ++++++++++++++++++++--
2 files changed, 28 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-7.0/Portfile b/lang/llvm-7.0/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b58943b..7cf11d1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-7.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-7.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -268,6 +268,10 @@ if {${subport} eq "llvm-${llvm_version}"} {
</span> # libfuzzer uses TLS, so disable it on Snow Leopard and earlier
configure.args-append \
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # XRAY uses TLS, so disable it on Snow Leopard and earlier
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCOMPILER_RT_BUILD_XRAY=OFF
</span> }
} elseif {${subport} eq "lldb-${llvm_version}"} {
#select.group lldb
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-7.0/files/0004-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch b/lang/llvm-7.0/files/0004-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index cd932e0..f79fe59 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-7.0/files/0004-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-7.0/files/0004-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -65,6 +65,28 @@ index fa81ce974ec..1e86f820437 100644
</span>
using namespace llvm;
<span style='display:block; white-space:pre;background:#ffe0e0;'>---
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-2.17.1 (Apple Git-112)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/tools/llvm-readobj/ObjDumper.cpp.orig 2018-09-03 23:25:13.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/tools/llvm-readobj/ObjDumper.cpp 2018-09-03 23:26:25.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -27,6 +27,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ObjDumper::~ObjDumper() {
</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;'>++#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <Availability.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1070
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static size_t strnlen(const char *s, size_t maxlen) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ size_t l = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ while (l < maxlen && *s) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ l++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ s++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return l;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void printAsPrintable(raw_ostream &W, const uint8_t *Start, size_t Len) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (size_t i = 0; i < Len; i++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ W << (isPrint(Start[i]) ? static_cast<char>(Start[i]) : '.');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>
</pre><pre style='margin:0'>
</pre>