Skip to content

Commit f79e19a

Browse files
committed
fix(windows): Link to advapi32 to fix git
Now we can build on windows. Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent ead7156 commit f79e19a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.cargo/config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# TODO: Remove this workaround when framework_lib updates to built v0.8+ with gix feature.
2+
# Issue: libgit2-sys v0.14.x has a bug on Windows where it doesn't link advapi32.lib.
3+
# The built crate (used by framework_lib) depends on git2 which pulls in the buggy libgit2-sys.
4+
# See: https://github.com/rust-lang/git2-rs/issues/1016
5+
[target.x86_64-pc-windows-msvc]
6+
rustflags = ["-C", "link-arg=advapi32.lib"]

0 commit comments

Comments
 (0)