|
|
@@ -46,11 +46,15 @@ fn main() {
|
|
|
println!("cargo:rustc-link-lib=static={}", lib);
|
|
|
}
|
|
|
|
|
|
- // note: add error checking yourself.
|
|
|
let output = Command::new("git")
|
|
|
.args(&["describe", "--tags"])
|
|
|
.output()
|
|
|
.unwrap();
|
|
|
let git_hash = String::from_utf8(output.stdout).unwrap();
|
|
|
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
|
|
|
+
|
|
|
+ // Make sure we have an 8MiB stack on Windows. Windows defaults to a 1MB
|
|
|
+ // stack, which is not big enough for debug builds
|
|
|
+ #[cfg(windows)]
|
|
|
+ println!("cargo:rustc-link-arg=/STACK:8388608");
|
|
|
}
|