diff options
Diffstat (limited to 'meta/recipes-devtools/rust/files/revert-link-std-statically-in-rustc_driver-feature.patch')
-rw-r--r-- | meta/recipes-devtools/rust/files/revert-link-std-statically-in-rustc_driver-feature.patch | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/recipes-devtools/rust/files/revert-link-std-statically-in-rustc_driver-feature.patch b/meta/recipes-devtools/rust/files/revert-link-std-statically-in-rustc_driver-feature.patch index 20a49d46dc..9bbbce0182 100644 --- a/meta/recipes-devtools/rust/files/revert-link-std-statically-in-rustc_driver-feature.patch +++ b/meta/recipes-devtools/rust/files/revert-link-std-statically-in-rustc_driver-feature.patch | |||
@@ -200,11 +200,10 @@ diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/c | |||
200 | index 27bbc8bd8f..a6fc4df2eb 100644 | 200 | index 27bbc8bd8f..a6fc4df2eb 100644 |
201 | --- a/src/bootstrap/src/core/build_steps/compile.rs | 201 | --- a/src/bootstrap/src/core/build_steps/compile.rs |
202 | +++ b/src/bootstrap/src/core/build_steps/compile.rs | 202 | +++ b/src/bootstrap/src/core/build_steps/compile.rs |
203 | @@ -1940,24 +1940,8 @@ impl Step for Assemble { | 203 | @@ -2158,23 +2158,7 @@ |
204 | let src_libdir = builder.sysroot_target_libdir(build_compiler, host); | ||
205 | for f in builder.read_dir(&src_libdir) { | 204 | for f in builder.read_dir(&src_libdir) { |
206 | let filename = f.file_name().into_string().unwrap(); | 205 | let filename = f.file_name().into_string().unwrap(); |
207 | - | 206 | |
208 | - let is_proc_macro = proc_macros.contains(&filename); | 207 | - let is_proc_macro = proc_macros.contains(&filename); |
209 | - let is_dylib_or_debug = is_dylib(&f.path()) || is_debug_info(&filename); | 208 | - let is_dylib_or_debug = is_dylib(&f.path()) || is_debug_info(&filename); |
210 | - | 209 | - |
@@ -214,8 +213,7 @@ index 27bbc8bd8f..a6fc4df2eb 100644 | |||
214 | - let can_be_rustc_dynamic_dep = if builder | 213 | - let can_be_rustc_dynamic_dep = if builder |
215 | - .link_std_into_rustc_driver(target_compiler.host) | 214 | - .link_std_into_rustc_driver(target_compiler.host) |
216 | - && !target_compiler.host.is_windows() | 215 | - && !target_compiler.host.is_windows() |
217 | + if (is_dylib(Path::new(&filename)) || is_debug_info(&filename)) && !proc_macros.contains(&filename) | 216 | - { |
218 | { | ||
219 | - let is_std = filename.starts_with("std-") || filename.starts_with("libstd-"); | 217 | - let is_std = filename.starts_with("std-") || filename.starts_with("libstd-"); |
220 | - !is_std | 218 | - !is_std |
221 | - } else { | 219 | - } else { |
@@ -223,6 +221,7 @@ index 27bbc8bd8f..a6fc4df2eb 100644 | |||
223 | - }; | 221 | - }; |
224 | - | 222 | - |
225 | - if is_dylib_or_debug && can_be_rustc_dynamic_dep && !is_proc_macro { | 223 | - if is_dylib_or_debug && can_be_rustc_dynamic_dep && !is_proc_macro { |
226 | builder.copy_link(&f.path(), &rustc_libdir.join(&filename)); | 224 | + if (is_dylib(Path::new(&filename)) || is_debug_info(&filename)) && !proc_macros.contains(&filename) { |
225 | builder.copy_link(&f.path(), &rustc_libdir.join(&filename), FileType::Regular); | ||
227 | } | 226 | } |
228 | } | 227 | } |