Don't enable Lightbeam tests if Lightbeam isn't enabled.

This commit is contained in:
Dan Gohman
2019-10-02 12:06:00 -07:00
parent 65b8afabe6
commit 5bf2fc0ffa
2 changed files with 8 additions and 1 deletions

View File

@@ -154,7 +154,10 @@ fn main() {
// Decide how to compile.
let strategy = match (args.flag_always_lightbeam, args.flag_always_cranelift) {
#[cfg(feature = "lightbeam")]
(true, false) => CompilationStrategy::AlwaysLightbeam,
#[cfg(not(feature = "lightbeam"))]
(true, false) => panic!("--always-lightbeam given, but Lightbeam support is not enabled"),
(false, true) => CompilationStrategy::AlwaysCranelift,
(false, false) => CompilationStrategy::Auto,
(true, true) => {