hugr-llvm 0.23.0

A general and extensible crate for lowering HUGRs into LLVM IR
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The hugr-llvm build script.
//!
//! For test builds, we compile the `test_panic_runtime` library to enable
//! LLVM execution tests involving panics.

fn main() {
    #[cfg(feature = "test-utils")]
    compile_panic_runtime();
}

#[cfg(feature = "test-utils")]
fn compile_panic_runtime() {
    println!("cargo::rerun-if-changed=src/emit/test/panic_runtime.c");
    cc::Build::new()
        .file("src/emit/test/panic_runtime.c")
        .compile("test_panic_runtime");
}