From 497c17a3906f26c184dc530b2211d4e737b210da Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Tue, 14 Nov 2023 18:31:28 -0500 Subject: [PATCH] Add check-cfg to cranelift --- build_system/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_system/tests.rs b/build_system/tests.rs index 10736ff9a55..ff71a567ed3 100644 --- a/build_system/tests.rs +++ b/build_system/tests.rs @@ -457,6 +457,8 @@ fn rustc_command(&self, args: I) -> Command cmd.arg("--target"); cmd.arg(&self.target_compiler.triple); cmd.arg("-Cpanic=abort"); + cmd.arg("--check-cfg=cfg(no_unstable_features)"); + cmd.arg("--check-cfg=cfg(jit)"); cmd.args(args); cmd }