summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/files/hardcodepaths.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rust/files/hardcodepaths.patch')
-rw-r--r--meta/recipes-devtools/rust/files/hardcodepaths.patch11
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/recipes-devtools/rust/files/hardcodepaths.patch b/meta/recipes-devtools/rust/files/hardcodepaths.patch
index cb99e8b011..19c494ad9a 100644
--- a/meta/recipes-devtools/rust/files/hardcodepaths.patch
+++ b/meta/recipes-devtools/rust/files/hardcodepaths.patch
@@ -4,12 +4,11 @@ to resolve these issues properly upstream.
4 4
5Upstream-Status: Inappropriate [patches need rework] 5Upstream-Status: Inappropriate [patches need rework]
6Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> 6Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
7 8
8Index: rustc-1.66.0-src/compiler/rustc_codegen_llvm/src/context.rs 9--- rustc-1.69.0-src/compiler/rustc_codegen_llvm/src/context.rs.orig 2023-04-21 08:38:23.092458478 +0100
9=================================================================== 10+++ rustc-1.69.0-src/compiler/rustc_codegen_llvm/src/context.rs 2023-04-21 08:39:00.266819755 +0100
10--- rustc-1.66.0-src.orig/compiler/rustc_codegen_llvm/src/context.rs 11@@ -156,46 +156,6 @@
11+++ rustc-1.66.0-src/compiler/rustc_codegen_llvm/src/context.rs
12@@ -160,46 +160,6 @@ pub unsafe fn create_module<'ll>(
13 } 12 }
14 } 13 }
15 14
@@ -39,7 +38,7 @@ Index: rustc-1.66.0-src/compiler/rustc_codegen_llvm/src/context.rs
39- // 38- //
40- // FIXME(#34960) 39- // FIXME(#34960)
41- let cfg_llvm_root = option_env!("CFG_LLVM_ROOT").unwrap_or(""); 40- let cfg_llvm_root = option_env!("CFG_LLVM_ROOT").unwrap_or("");
42- let custom_llvm_used = cfg_llvm_root.trim() != ""; 41- let custom_llvm_used = !cfg_llvm_root.trim().is_empty();
43- 42-
44- if !custom_llvm_used && target_data_layout != llvm_data_layout { 43- if !custom_llvm_used && target_data_layout != llvm_data_layout {
45- bug!( 44- bug!(