We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc754ca + 42ecde4 commit 2eb472eCopy full SHA for 2eb472e
src/tools/run-make-support/src/cc.rs
@@ -161,8 +161,9 @@ pub fn extra_cxx_flags() -> Vec<&'static str> {
161
if is_windows() {
162
if is_msvc() { vec![] } else { vec!["-lstdc++"] }
163
} else {
164
- match uname() {
165
- n if n.contains("Darwin") => vec!["-lc++"],
+ match &uname()[..] {
+ "Darwin" => vec!["-lc++"],
166
+ "FreeBSD" | "SunOS" | "OpenBSD" => vec![],
167
_ => vec!["-lstdc++"],
168
}
169
0 commit comments