Avoid adding compiler-used functions to symbols.o
This commit is contained in:
parent
7ceaf19868
commit
9ed0d11efb
6 changed files with 27 additions and 2 deletions
|
@ -60,7 +60,7 @@ fn prepare_lto(
|
|||
};
|
||||
|
||||
let symbol_filter = &|&(ref name, info): &(String, SymbolExportInfo)| {
|
||||
if info.level.is_below_threshold(export_threshold) || info.used {
|
||||
if info.level.is_below_threshold(export_threshold) || info.used || info.used_compiler {
|
||||
Some(CString::new(name.as_str()).unwrap())
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue