wasmer/lib/wasi/build/mod.rs

12 lines
216 B
Rust
Raw Normal View History

2019-05-17 19:09:31 +00:00
use std::env;
mod wasitests;
static WASITESTS_ENV_VAR: &str = "WASM_WASI_GENERATE_WASITESTS";
fn main() {
if env::var(WASITESTS_ENV_VAR).unwrap_or("0".to_string()) == "1" {
wasitests::build();
}
}