about summary refs log tree commit diff
path: root/tests/run-make/wasm-exceptions-nostd/rmake.rs
blob: 720ee9909d2ab7439a7627571e5dcdfa90718044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ only-wasm32-bare

use std::path::Path;

use run_make_support::{cmd, env_var, rustc};

fn main() {
    // Add a few command line args to make exceptions work
    rustc()
        .input(Path::new("src").join("lib.rs"))
        .target("wasm32-unknown-unknown")
        .panic("unwind")
        .arg("-Cllvm-args=-wasm-enable-eh")
        .arg("-Ctarget-feature=+exception-handling")
        .run();

    cmd(&env_var("NODE")).arg("verify.mjs").arg("lib.wasm").run();
}