couple of build tweaks for git versioning and macos build perf
This commit is contained in:
1 parent
87d49e45fc
commit
e83d059fc7
2 files changed
+10
No files matched your search
@@ -12,5 +12,9 @@ resolver = "2"
|
||||
opt-level = 3
|
||||
# debug = 1
|
||||
|
||||
[profile.dev]
|
||||
# https://jakedeichert.com/blog/reducing-rust-incremental-compilation-times-on-macos-by-70-percent/
|
||||
split-debuginfo = "unpacked"
|
||||
|
||||
[patch.crates-io]
|
||||
ssh2 = { git = "https://github.com/wez/ssh2-rs.git", branch="win32ssl" }
|
||||
@@ -68,6 +68,12 @@ fn main() {
|
||||
ci_tag = info.trim().to_string();
|
||||
}
|
||||
}
|
||||
|
||||
let index = Path::new("../.git/index");
|
||||
if index.exists() {
|
||||
let index = index.canonicalize().unwrap();
|
||||
println!("cargo:rerun-if-changed={}", index.display());
|
||||
}
|
||||
}
|
||||
|
||||
let target = std::env::var("TARGET").unwrap_or_else(|_| "unknown".to_string());
|
||||
|
||||
Reference in new issue
Block a user