Skip to content

Commit d48ac74

Browse files
committed
Pass -stdlib=libc++ on Apple and FreeBSD systems
1 parent f0b7ad1 commit d48ac74

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.rs

+7
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ fn cc_flags() -> Vec<&'static str> {
6666
]);
6767
}
6868

69+
let is_apple = target.contains("apple");
70+
let is_freebsd = target.contains("freebsd");
71+
72+
if is_apple || is_freebsd {
73+
result.push("-stdlib=libc++");
74+
}
75+
6976
result
7077
}
7178

0 commit comments

Comments
 (0)