Skip to content

Commit 7cb9bf1

Browse files
noxkornelski
authored andcommitted
Fix MinGW builds
Those need to link against libstdc++.
1 parent 6b61da0 commit 7cb9bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boring-sys/build/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ fn get_cpp_runtime_lib(config: &Config) -> Option<String> {
553553

554554
match &*config.target_os {
555555
"macos" | "ios" | "freebsd" | "android" => Some("c++".into()),
556-
_ if config.unix => Some("stdc++".into()),
556+
_ if config.unix || config.target_env == "gnu" => Some("stdc++".into()),
557557
// TODO(rmehra): figure out how to do this for windows
558558
_ => None,
559559
}

0 commit comments

Comments
 (0)