<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/ef8a319b93196a8c24bc0ea786ceccdc72e2932a">https://github.com/macports/macports-ports/commit/ef8a319b93196a8c24bc0ea786ceccdc72e2932a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ef8a319b93196a8c24bc0ea786ceccdc72e2932a
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Fri Apr 27 05:01:33 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> cargo PG: UsingTheRightCompiler
</span>---
_resources/port1.0/group/cargo-1.0.tcl | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/cargo-1.0.tcl b/_resources/port1.0/group/cargo-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 1217fcf..befa64d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/cargo-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/cargo-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -216,13 +216,31 @@ post-extract {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach stage {build destroot} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://trac.macports.org/wiki/UsingTheRightCompiler
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${stage}.env-append CC=${configure.cc} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CXX=${configure.cxx}
</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;'>+# do not force all Portfiles to switch from ${stage}.env to ${stage}.env-append
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc cargo.environments {} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global configure.cc configure.cxx subport build_arch universal_archs merger_configure_env merger_build_env merger_destroot_env
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach stage {build destroot} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${stage}.env-delete CC=${configure.cc} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CXX=${configure.cxx}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${stage}.env-append CC=${configure.cc} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CXX=${configure.cxx}
</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;'>+port::register_callback cargo.environments
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> use_configure no
build.cmd cargo build
build.target
build.pre_args --release --frozen -v -j${build.jobs}
build.args
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.env RUSTFLAGS="-C linker=${configure.cc}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env-append RUSTFLAGS="-C linker=${configure.cc}"
</span>
destroot {
ui_error "No destroot phase in the Portfile!"
</pre><pre style='margin:0'>
</pre>