Skip to content

Commit

Permalink
run-make-support: preserve tooks.mk behavior for EXTRACXXFLAGS
Browse files Browse the repository at this point in the history
jieyouxu committed May 2, 2024
1 parent 9ba3d31 commit 42ecde4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tools/run-make-support/src/cc.rs
Original file line number Diff line number Diff line change
@@ -161,8 +161,9 @@ pub fn extra_cxx_flags() -> Vec<&'static str> {
if is_windows() {
if is_msvc() { vec![] } else { vec!["-lstdc++"] }
} else {
match uname() {
n if n.contains("Darwin") => vec!["-lc++"],
match &uname()[..] {
"Darwin" => vec!["-lc++"],
"FreeBSD" | "SunOS" | "OpenBSD" => vec![],
_ => vec!["-lstdc++"],
}
}

0 comments on commit 42ecde4

Please sign in to comment.