Try to reduce CI times with a Rust *.wat parser (#1332)
This commit moves the cranelift tests and tools from the `wabt` crate on crates.io (which compiles the wabt C++ codebase) to the `wat` crate on crates.io which is a Rust parser for the `*.wat` format. This was motivated by me noticing that release builds on Windows are ~5 minutes longer than Linux builds, and local timing graphs showed that `wabt-sys` was by far the longest build step in the build process. This commit changes the `clif-util` binary where the `--enable-simd` flag is no longer respected with the text format as input, since the `wat` crate has no feature gating. This was already sort of not respected, though, since `--enable-simd` wasn't consulted for binary inputs which `clif-util` supports as well. If this isn't ok though then it should be ok to close this PR!
This commit is contained in:
committed by
Andrew Brown
parent
582e7942f8
commit
3a13f79b66
@@ -107,24 +107,6 @@ fn add_debug_flag<'a>() -> clap::Arg<'a, 'a> {
|
||||
.help("Enable debug output on stderr/stdout")
|
||||
}
|
||||
|
||||
fn add_enable_simd_flag<'a>() -> clap::Arg<'a, 'a> {
|
||||
Arg::with_name("enable-simd")
|
||||
.long("enable-simd")
|
||||
.help("Enable WASM's SIMD operations")
|
||||
}
|
||||
|
||||
fn add_enable_multi_value<'a>() -> clap::Arg<'a, 'a> {
|
||||
Arg::with_name("enable-multi-value")
|
||||
.long("enable-multi-value")
|
||||
.help("Enable WASM's multi-value support")
|
||||
}
|
||||
|
||||
fn add_enable_reference_types_flag<'a>() -> clap::Arg<'a, 'a> {
|
||||
Arg::with_name("enable-reference-types")
|
||||
.long("enable-reference-types")
|
||||
.help("Enable WASM's reference types operations")
|
||||
}
|
||||
|
||||
fn add_just_decode_flag<'a>() -> clap::Arg<'a, 'a> {
|
||||
Arg::with_name("just-decode")
|
||||
.short("t")
|
||||
@@ -167,9 +149,6 @@ fn add_wasm_or_compile<'a>(cmd: &str) -> clap::App<'a, 'a> {
|
||||
.arg(add_target_flag())
|
||||
.arg(add_input_file_arg())
|
||||
.arg(add_debug_flag())
|
||||
.arg(add_enable_simd_flag())
|
||||
.arg(add_enable_multi_value())
|
||||
.arg(add_enable_reference_types_flag())
|
||||
.arg(add_just_decode_flag())
|
||||
.arg(add_check_translation_flag())
|
||||
}
|
||||
@@ -321,9 +300,6 @@ fn main() {
|
||||
rest_cmd.is_present("print-size"),
|
||||
rest_cmd.is_present("time-passes"),
|
||||
rest_cmd.is_present("value-ranges"),
|
||||
rest_cmd.is_present("enable-simd"),
|
||||
rest_cmd.is_present("enable-multi-value"),
|
||||
rest_cmd.is_present("enable-reference-types"),
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user