<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/045e08a6856595db8cea3d010df45af463adde32">https://github.com/macports/macports-ports/commit/045e08a6856595db8cea3d010df45af463adde32</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 045e08a6856595db8cea3d010df45af463adde32
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Wed May 13 15:30:15 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> legacysupport 1.1 PG: CPATH->XYZ_INCLUDE_PATH
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> CPATH behaves like -I while XYZ_INCLUDE_PATH behaves like -isystem.
</span><span style='display:block; white-space:pre;color:#404040;'> This affects the warning issued and the errors emitted when
</span><span style='display:block; white-space:pre;color:#404040;'> -pedantic-errors is used.
</span>---
_resources/port1.0/group/legacysupport-1.1.tcl | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/legacysupport-1.1.tcl b/_resources/port1.0/group/legacysupport-1.1.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 8e5545a..a9d8a63 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/legacysupport-1.1.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/legacysupport-1.1.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -59,8 +59,15 @@ proc legacysupport::add_legacysupport {} {
</span> configure.cppflags-prepend [option legacysupport.header_search]
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.cpath-delete ${prefix}/include/LegacySupport
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.cpath-prepend ${prefix}/include/LegacySupport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # do not use compiler.cpath since it behaves like -I, while ${lang}_INCLUDE_PATH behaves like -isystem
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # since legacy-support uses GNU language extensions, this prevents warnings when `-pedantic` is used and error when `-pedantic-errors` is used.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see, e.g., llvm-devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach phase {configure build destroot test} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach lang {C OBJC CPLUS OBJCPLUS} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${phase}.env-delete ${lang}_INCLUDE_PATH=${prefix}/include/LegacySupport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${phase}.env-append ${lang}_INCLUDE_PATH=${prefix}/include/LegacySupport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# see https://trac.macports.org/ticket/59832
</pre><pre style='margin:0'>
</pre>