<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/9f06c756c1c98ce78bdc1cd5301874af86075a2b">https://github.com/macports/macports-ports/commit/9f06c756c1c98ce78bdc1cd5301874af86075a2b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 9f06c756c1c98ce78bdc1cd5301874af86075a2b
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Fri Feb 17 05:52:14 2023 -0700

<span style='display:block; white-space:pre;color:#404040;'>    rust: fix build on older systems
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Setting SDKROOT cases the build system to run
</span><span style='display:block; white-space:pre;color:#404040;'>    `xcrun --show-sdk-path`, which older systems
</span><span style='display:block; white-space:pre;color:#404040;'>    do not understand
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    No revbump since port either builds correctly or not at all.
</span>---
 lang/rust/Portfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/rust/Portfile b/lang/rust/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 442ac61e67b..30cc00a3968 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/rust/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/rust/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,7 +53,10 @@ depends_skip_archcheck      cmake \
</span> 
 dist_subdir                 rust
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${configure.sdkroot} eq ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${configure.sdkroot} eq "" && ${os.major} >= 12} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # allow universal build on macOS 10.13 with only 10.14 SDK, which is non-universal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # however, setting SDKROOT causes the build system to run `xcrun --show-sdk-path`, which older systems do not understand
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # see https://github.com/rust-lang/cc-rs/blob/main/src/lib.rs
</span>     build.env-append        SDKROOT=/
 }
 
</pre><pre style='margin:0'>

</pre>