Skip to content

Commit 5139ab4

Browse files
committed
Fix rustc testsuite
1 parent 29d4cba commit 5139ab4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/lib.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ use rustc_codegen_ssa::{CodegenResults, TargetConfig};
4747
use rustc_log::tracing::info;
4848
use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
4949
use rustc_session::Session;
50-
use rustc_session::config::OutputFilenames;
50+
use rustc_session::config::{OutputFilenames, PrintKind, PrintRequest};
5151
use rustc_span::{Symbol, sym};
5252
use rustc_target::spec::{Abi, Arch, Env, Os};
5353

@@ -160,6 +160,16 @@ impl CodegenBackend for CraneliftCodegenBackend {
160160
}
161161
}
162162

163+
fn print(&self, req: &PrintRequest, out: &mut String, _sess: &Session) {
164+
match req.kind {
165+
// FIXME have a default impl that returns false
166+
PrintKind::BackendHasZstd => {
167+
out.push_str("false\n");
168+
}
169+
_ => {}
170+
}
171+
}
172+
163173
fn target_config(&self, sess: &Session) -> TargetConfig {
164174
// FIXME return the actually used target features. this is necessary for #[cfg(target_feature)]
165175
let target_features = match sess.target.arch {

0 commit comments

Comments
 (0)