mirror of
https://git.freebsd.org/ports.git
synced 2025-07-01 09:30:30 -04:00
Both versions of Rust seen changes to their build system. Now they require a bootstrap of Cargo and thus, a snapshot of Cargo's registry. Each library has its own suffix instead of a common suffix for a given version of Rust. Thus all future updates of the ports will include changes to their plist. $DISTFILES are now all under the `rust` directory in `$DISTDIR`. A similar change will be committed to devel/cargo later. lang/rust-nightly is enabled on i386 (bugzilla 216143). The source snapshot also contains everything to build it on aarch64, but enabling it will be committed later. PR: 216143 Approved by: riggs, bapt (mentor), antoine (mentor) Differential Revision: https://reviews.freebsd.org/D9286
11 lines
353 B
Rust
11 lines
353 B
Rust
--- src/librustc_llvm/build.rs.orig 2017-01-18 02:20:03 UTC
|
|
+++ src/librustc_llvm/build.rs
|
|
@@ -234,6 +234,8 @@ fn main() {
|
|
// OpenBSD has a particular C++ runtime library name
|
|
let stdcppname = if target.contains("openbsd") {
|
|
"estdc++"
|
|
+ } else if target.contains("freebsd") {
|
|
+ "c++"
|
|
} else {
|
|
"stdc++"
|
|
};
|