summaryrefslogtreecommitdiffstats
path: root/third_party/rust/lucet-runtime-internals-wasmsbx/build.rs
blob: 41323408cf6bb2fb072db251f0f559441916e9e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use cc;

fn main() {
    cc::Build::new()
        .file("src/context/context_asm.S")
        .compile("context_context_asm");
    cc::Build::new()
        .file("src/instance/siginfo_ext.c")
        .compile("instance_siginfo_ext");

    // TODO: this should only be built for tests, but Cargo doesn't
    // currently let you specify different build.rs options for tests:
    // <https://github.com/rust-lang/cargo/issues/1581>
    cc::Build::new()
        .file("src/context/tests/c_child.c")
        .compile("context_tests_c_child");
}