diff options
| author | Arthur Zamarin <arthurzam@gentoo.org> | 2025-02-05 20:17:58 +0200 |
|---|---|---|
| committer | Arthur Zamarin <arthurzam@gentoo.org> | 2025-02-05 20:33:02 +0200 |
| commit | 5025d09088792f6f6817dd2f3a677c7c593c51cc (patch) | |
| tree | c4a0444fdd55f0c7c60ccb16d1535f418b8ff90e /dev-lang/rust/files | |
| parent | a231a4ceb033382a7053d9584434999560db70f8 (diff) | |
| download | gentoo-5025d09088792f6f6817dd2f3a677c7c593c51cc.tar.gz gentoo-5025d09088792f6f6817dd2f3a677c7c593c51cc.tar.bz2 gentoo-5025d09088792f6f6817dd2f3a677c7c593c51cc.zip | |
dev-lang/rust: add 1.84.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-lang/rust/files')
| -rw-r--r-- | dev-lang/rust/files/1.84.1-fix-cross.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-lang/rust/files/1.84.1-fix-cross.patch b/dev-lang/rust/files/1.84.1-fix-cross.patch new file mode 100644 index 000000000000..7b2d18b10ea7 --- /dev/null +++ b/dev-lang/rust/files/1.84.1-fix-cross.patch @@ -0,0 +1,28 @@ +https://github.com/rust-lang/rust/commit/a24d859f19bbefe5371694f318568b0ab5a13299 +From: onur-ozkan <work@onurozkan.dev> +Date: Thu, 30 Jan 2025 16:51:08 +0000 +Subject: [PATCH] set rustc dylib on manually constructed rustc command + +Signed-off-by: onur-ozkan <work@onurozkan.dev> +--- a/src/bootstrap/src/core/builder/cargo.rs ++++ b/src/bootstrap/src/core/builder/cargo.rs +@@ -653,7 +653,10 @@ impl Builder<'_> { + // Build proc macros both for the host and the target unless proc-macros are not + // supported by the target. + if target != compiler.host && cmd_kind != Kind::Check { +- let error = command(self.rustc(compiler)) ++ let mut rustc_cmd = command(self.rustc(compiler)); ++ self.add_rustc_lib_path(compiler, &mut rustc_cmd); ++ ++ let error = rustc_cmd + .arg("--target") + .arg(target.rustc_target_arg()) + .arg("--print=file-names") +@@ -661,6 +664,7 @@ impl Builder<'_> { + .arg("-") + .run_capture(self) + .stderr(); ++ + let not_supported = error + .lines() + .any(|line| line.contains("unsupported crate type `proc-macro`")); |
