mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Don't re-compile on every cargo run (#4019)
- Add new crate `substrate-build-script-utils` to unify the code of `node`, `node-template` and `polkadot-node`. - The `node-cli` build script needs to search upwards for the `.git/HEAD` file to find it.
This commit is contained in:
@@ -21,9 +21,9 @@ use vergen::{ConstantsFlags, generate_cargo_keys};
|
||||
|
||||
fn main() {
|
||||
build_shell_completion();
|
||||
generate_cargo_keys(ConstantsFlags::all())
|
||||
.expect("Failed to generate metadata files");
|
||||
println!("cargo:rerun-if-changed=.git/HEAD");
|
||||
generate_cargo_keys(ConstantsFlags::all()).expect("Failed to generate metadata files");
|
||||
|
||||
build_script_utils::rerun_if_git_head_changed();
|
||||
}
|
||||
|
||||
/// Build shell completion scripts for all known shells
|
||||
|
||||
Reference in New Issue
Block a user