MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / main

Function main

build.rs:5–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3use std::process::Command;
4
5fn main() {
6 println!("cargo:rerun-if-changed=build.rs");
7
8 set_commit_info_for_rustc();
9
10 println!("cargo:rustc-check-cfg=cfg(asan)");
11 match env::var("CARGO_CFG_SANITIZE") {
12 Ok(s) if s == "address" => {
13 println!("cargo:rustc-cfg=asan");
14 }
15 _ => {}
16 }
17}
18
19fn set_commit_info_for_rustc() {
20 if !Path::new(".git").exists() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected