11 lines
215 B
Rust
Raw Normal View History

2019-01-10 21:37:59 -08:00
use std::env;
mod emtests;
static SPECTESTS_ENV_VAR: &str = "WASM_EMSCRIPTEN_GENERATE_EMTESTS";
fn main() {
if env::var(SPECTESTS_ENV_VAR).unwrap_or("0".to_string()) == "1" {
emtests::build();
}
}