Rename --always-cranelift to --cranelift.

Also, enable use of Lightbeam in wasm2obj.
This commit is contained in:
Dan Gohman
2019-10-04 17:02:31 -07:00
parent 36756613b8
commit 5ccdf13b11
7 changed files with 58 additions and 40 deletions

View File

@@ -15,9 +15,9 @@ fn main() {
.expect("error generating test source file");
for strategy in &[
"AlwaysCranelift",
"Cranelift",
#[cfg(feature = "lightbeam")]
"AlwaysLightbeam",
"Lightbeam",
] {
writeln!(out, "#[allow(non_snake_case)]").expect("generating tests");
writeln!(out, "mod {} {{", strategy).expect("generating tests");
@@ -151,11 +151,11 @@ fn write_testsuite_tests(
fn ignore(testsuite: &str, name: &str, strategy: &str) -> bool {
match strategy {
#[cfg(feature = "lightbeam")]
"AlwaysLightbeam" => match (testsuite, name) {
"Lightbeam" => match (testsuite, name) {
("single_file_spec_test", "simd_const") => return true,
_ => (),
},
"AlwaysCranelift" => {}
"Cranelift" => {}
_ => panic!("unrecognized strategy"),
}