Skip to content

Commit bf26309

Browse files
committed
Fix mingw detection
1 parent 1fb9695 commit bf26309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libgit2-sys/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn main() {
2424

2525
let mut cflags = os::getenv("CFLAGS").unwrap_or(String::new());
2626
let target = os::getenv("TARGET").unwrap();
27-
let mingw = target.contains("mingw");
27+
let mingw = target.contains("windows-gnu");
2828
cflags.push_str(" -ffunction-sections -fdata-sections");
2929

3030
if target.contains("i686") {

0 commit comments

Comments
 (0)