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
  • Loading branch information
jieyouxu committed May 1, 2024
1 parent 9ba3d31 commit 6834063
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/run-make-support/src/cc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ pub fn extra_cxx_flags() -> Vec<&'static str> {
if is_msvc() { vec![] } else { vec!["-lstdc++"] }
} else {
match uname() {
n if n.contains("Darwin") => vec!["-lc++"],
"Darwin" => vec!["-lc++"],
"FreeBSD" | "SunOS" | "OpenBSD" => vec![],
_ => vec!["-lstdc++"],
}
}
Expand Down

0 comments on commit 6834063

Please sign in to comment.