Skip to content

Commit 500cc9d

Browse files
committed
xdiff has been moved to deps but external xdiff is not supported
1 parent 756fa42 commit 500cc9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libgit2-sys/build.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ fn main() {
4949
// Include all cross-platform C files
5050
add_c_files(&mut cfg, "libgit2/src/libgit2");
5151
add_c_files(&mut cfg, "libgit2/src/util");
52-
add_c_files(&mut cfg, "libgit2/src/libgit2/xdiff");
5352

5453
// These are activated by features, but they're all unconditionally always
5554
// compiled apparently and have internal #define's to make sure they're
@@ -61,6 +60,10 @@ fn main() {
6160
cfg.include("libgit2/deps/http-parser")
6261
.file("libgit2/deps/http-parser/http_parser.c");
6362

63+
// external/system xdiff is not yet supported
64+
cfg.include("libgit2/deps/xdiff");
65+
add_c_files(&mut cfg, "libgit2/deps/xdiff");
66+
6467
// Use the included PCRE regex backend.
6568
//
6669
// Ideally these defines would be specific to the pcre files (or placed in

0 commit comments

Comments
 (0)