krunkit 1.2.0

CLI tool to start VMs with libkrun
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SDPX-License-Identifier: Apache-2.0

fn main() {
    #[cfg(target_os = "macos")]
    {
        // Must match the default PREFIX in the Makefile.
        const DEFAULT_PREFIX: &str = "/usr/local";

        let prefix = std::env::var("PREFIX").unwrap_or(DEFAULT_PREFIX.to_string());
        println!("cargo:rustc-link-search={prefix}/lib");

        println!("cargo:rerun-if-env-changed=PREFIX");
    }
}