mirror of
https://github.com/servo/servo.git
synced 2025-09-05 20:48:22 +01:00
Drop vergen_git2 dependency (#36439)
Manually call `git rev-parse --short HEAD` to retrieve the commit hash, instead of using Emitter from vergen_git2. This helps remove dependencies and shorten compile time. Testing: It doesn't require tests because it is a refactoring for removing dependencies Fixes: #36435 Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
This commit is contained in:
parent
c16ca22970
commit
e6595619e1
4 changed files with 22 additions and 125 deletions
|
@ -22,7 +22,6 @@ bench = false
|
|||
# since build-scripts can't detect the cargo target os at build-time, we
|
||||
# must unconditionally add these dependencies. See https://github.com/rust-lang/cargo/issues/4932
|
||||
[build-dependencies]
|
||||
vergen-git2 = { version = "1.0.5", features = ["build"] }
|
||||
# MacOS only
|
||||
cc = "1.2"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue