freebsd-ports/lang/rust/files/patch-src_bootstrap_native.rs
Mikael Urankar e57dfbf323 lang/rust: Update to 1.60.0
- Switch to using "x.py dist" instead of "x.py build" in the do-build phase as
    we are missing the rustc-dev component on nightly
  - Revert part of [1] as it causes cross build problem with lang/rust-bootstrap@powerpc
  - Mark devel/racer as deprecated: it's hard to maintain due to recurrent build problem
    and it's not actively maintained. Upstream advises to use devel/rust-analyzer instead.

[1] 07dae5a97b

Announce:		https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html
ChangeLog:		https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1600-2022-04-07
Reviewed by:		tobik
Exp-run by:		antoine
Differential Revision:	https://reviews.freebsd.org/D34823
2022-05-01 18:39:19 +02:00

15 lines
636 B
XML

Revert part of [1] as it causes cross build problem with lang/rust-bootstrap@powerpc
[1] https://github.com/rust-lang/rust/commit/07dae5a97b64100f5abd511f1e2d5a6263a54006
--- src/bootstrap/native.rs.orig 2022-04-13 15:53:33.692586000 +0200
+++ src/bootstrap/native.rs 2022-04-13 15:53:47.191939000 +0200
@@ -318,7 +318,7 @@ impl Step for Llvm {
// Workaround for ppc32 lld limitation
if target == "powerpc-unknown-freebsd" {
- ldflags.exe.push(" -fuse-ld=bfd");
+ cfg.define("CMAKE_EXE_LINKER_FLAGS", "-fuse-ld=bfd");
}
// https://llvm.org/docs/HowToCrossCompileLLVM.html