<pre style='margin:0'>
Jeremy Huddleston Sequoia (jeremyhu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9c1789198cc76bb4fd6893b562d189d2d8689ae5">https://github.com/macports/macports-ports/commit/9c1789198cc76bb4fd6893b562d189d2d8689ae5</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 9c17891 ld64-latest: Fix build failure for llvm variants older than +llvm39
</span>9c17891 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 9c1789198cc76bb4fd6893b562d189d2d8689ae5
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Sun Dec 18 02:01:56 2016 -0800
<span style='display:block; white-space:pre;color:#404040;'> ld64-latest: Fix build failure for llvm variants older than +llvm39
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
</span>---
devel/ld64/Portfile | 3 ++-
devel/ld64/files/PR-29723629.patch | 43 ++++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/ld64/Portfile b/devel/ld64/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d2b03a9..4e9be8d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/ld64/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/ld64/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -180,7 +180,8 @@ subport ld64-latest {
</span> PR-49393.patch \
PR-29117886.patch \
PR-29679726.patch \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- PR-29723276.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PR-29723276.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PR-29723629.patch
</span>
depends_lib-append port:libcxx
configure.cxx_stdlib libc++
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/ld64/files/PR-29723629.patch b/devel/ld64/files/PR-29723629.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..91aac5f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/ld64/files/PR-29723629.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,43 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+guard usage of thinlto_code_gen_t behind an appropriate API version check
</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;'>+ src/ld/parsers/lto_file.cpp | 4 ++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 4 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/ld/parsers/lto_file.cpp src/ld/parsers/lto_file.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 47506ad7..4c44f297 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/ld/parsers/lto_file.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/ld/parsers/lto_file.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -292,12 +292,14 @@ private:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ std::vector<const ld::Atom*>& newAtoms,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ std::vector<const char*>& additionalUndefines);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if LTO_API_VERSION >= 18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static thinlto_code_gen_t init_thinlto_codegen(const std::vector<File*>& files,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const std::vector<const ld::Atom*>& allAtoms,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ld::Internal& state,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const OptimizeOptions& options,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CStringToAtom& deadllvmAtoms,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CStringToAtom& llvmAtoms);
</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 std::vector<File*> _s_files;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static bool _s_llvmOptionsProcessed;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1035,6 +1037,7 @@ bool Parser::optimizeLTO(const std::vector<File*> files,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return true;
</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;'>++#if LTO_API_VERSION >= 18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // Create the ThinLTO codegenerator
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ thinlto_code_gen_t Parser::init_thinlto_codegen(const std::vector<File*>& files,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const std::vector<const ld::Atom*>& allAtoms,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1185,6 +1188,7 @@ thinlto_code_gen_t Parser::init_thinlto_codegen(const std::vector<File*>&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return thingenerator;
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // Full LTO processing
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bool Parser::optimizeThinLTO(const std::vector<File*>& files,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span></pre><pre style='margin:0'>
</pre>