diff options
author | Pgowda <pgowda.cve@gmail.com> | 2021-09-29 06:20:54 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 11:55:55 +0100 |
commit | 7261a4b4d5778a48c8d72c9125233b1b0bc009e6 (patch) | |
tree | 401fadf55571ffb93ca2016a982c02cfe402c14b /meta/recipes-devtools/python/python3_3.9.7.bb | |
parent | c44bc7c0fb8b7c2e44dd93607a3bfd9733e1df80 (diff) | |
download | openembedded-core-contrib-7261a4b4d5778a48c8d72c9125233b1b0bc009e6.tar.gz |
Fix rust-native build issue when debug is enabled
When DEBUG_BUILD is set for building rust-native, it generated
error as follows:-
=========================================================
Building : rustdoc, rustdoc-json-types
error[E0463]: can't find crate for `rustc_llvm`
which `rustc_driver` depends on
--> src/librustdoc/lib.rs:37:1
|
37 | extern crate rustc_driver;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
=========================================================
On analyzing the issue, it was found that rustc_llvm crate was present
at required path. However, it was very huge due to the presence of
debugging information. Hence, it was somehow not recognized as a valid
crate. The following patch removes the debug information from
rust-llvm-native which is built prior to rust-native but retains debug
information as required in rust-native binaries.
Signed-off-by: Pgowda <pgowda.cve@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'meta/recipes-devtools/python/python3_3.9.7.bb')
0 files changed, 0 insertions, 0 deletions