<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/a3d3f94ba159067517afe0671a585f8b0239d356">https://github.com/macports/macports-ports/commit/a3d3f94ba159067517afe0671a585f8b0239d356</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a3d3f94ba159067517afe0671a585f8b0239d356
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Tue Mar 28 13:23:36 2023 +0100

<span style='display:block; white-space:pre;color:#404040;'>    clang-devel: Add workaround for add_security_warnings on OSX 10.7
</span>---
 lang/llvm-devel/Portfile | 10 ++++++++++
 1 file changed, 10 insertions(+)

<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 f36086b0fa4..91c42ca2f16 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;'>@@ -194,6 +194,16 @@ if {${os.platform} eq "darwin" && ${os.major} < 14} {
</span>     patchfiles-append  0110-Avoid-Pthread-QOS.patch
 }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 12} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # On OSX10.7 and older revert call to add_security_warnings as fails with
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    #   add_security_warnings Function invoked with incorrect arguments
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s|add_security_warnings\(|\#add_security_warnings\(|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ${patch.dir}/compiler-rt/lib/builtins/CMakeLists.txt \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ${patch.dir}/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</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> post-patch {
     reinplace "s|@@PREFIX@@|${prefix}|" \
         ${patch.dir}/clang/lib/Driver/ToolChains/Clang.cpp \
</pre><pre style='margin:0'>

</pre>