Skip to content

Commit f7f17bf

Browse files
bjorn3Kobzol
authored andcommitted
Add missing export for the oom strategy symbol
1 parent e64f111 commit f7f17bf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

compiler/rustc_codegen_ssa/src/back/symbol_export.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use rustc_middle::ty::query::{ExternProviders, Providers};
1313
use rustc_middle::ty::subst::{GenericArgKind, SubstsRef};
1414
use rustc_middle::ty::Instance;
1515
use rustc_middle::ty::{self, SymbolName, TyCtxt};
16-
use rustc_session::config::CrateType;
16+
use rustc_session::config::{CrateType, OomStrategy};
1717
use rustc_target::spec::SanitizerSet;
1818

1919
pub fn threshold(tcx: TyCtxt<'_>) -> SymbolExportLevel {
@@ -206,6 +206,15 @@ fn exported_symbols_provider_local<'tcx>(
206206
},
207207
));
208208
}
209+
210+
symbols.push((
211+
ExportedSymbol::NoDefId(SymbolName::new(tcx, OomStrategy::SYMBOL)),
212+
SymbolExportInfo {
213+
level: SymbolExportLevel::Rust,
214+
kind: SymbolExportKind::Text,
215+
used: false,
216+
},
217+
));
209218
}
210219

211220
if tcx.sess.instrument_coverage() || tcx.sess.opts.cg.profile_generate.enabled() {

0 commit comments

Comments
 (0)