Skip to content

Commit 400dec0

Browse files
committed
librustc_llvm: default to libc++ for darwin
1 parent 8b88324 commit 400dec0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_llvm/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ fn main() {
243243
"c++"
244244
} else if target.contains("freebsd") {
245245
"c++"
246+
} else if target.contains("darwin") {
247+
"c++"
246248
} else if target.contains("netbsd") && llvm_static_stdcpp.is_some() {
247249
// NetBSD uses a separate library when relocation is required
248250
"stdc++_pic"

0 commit comments

Comments
 (0)