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:
Bastian Köcher
2019-11-05 19:36:10 +01:00
committed by GitHub
parent 350e72dac5
commit 508c52a08a
7 changed files with 66 additions and 20 deletions
+1
View File
@@ -38,3 +38,4 @@ sr-primitives = { path = "../core/sr-primitives" }
[build-dependencies]
vergen = "3.0.4"
build-script-utils = { package = "substrate-build-script-utils", path = "../core/utils/build-script-utils" }