Skip to content

Commit ae6b4f4

Browse files
committed
fixup! fix(windows): Link to advapi32 to fix git
1 parent 17bbcaa commit ae6b4f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
# Issue: libgit2-sys v0.14.x has a bug on Windows where it doesn't link advapi32.lib.
33
# The built crate (used by framework_lib) depends on git2 which pulls in the buggy libgit2-sys.
44
# See: https://github.com/rust-lang/git2-rs/issues/1016
5+
#
6+
# Note: This config only works for local builds without --target flag.
7+
# CI uses RUSTFLAGS env var directly (see .github/workflows/ci.yaml).
58
[target.x86_64-pc-windows-msvc]
69
rustflags = ["-C", "link-arg=advapi32.lib"]
10+
[host.x86_64-pc-windows-msvc]
11+
rustflags = ["-C", "link-arg=advapi32.lib"]

0 commit comments

Comments
 (0)