aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2017-02-07 12:15:31 +1100
committerXidorn Quan <me@upsuper.org>2017-02-07 12:15:31 +1100
commit33a9c4383c2aef475ce5e8e54c9ff12ae47181c3 (patch)
tree17d4a72bf9ffcbbec63787015f9cf5529ba44fe7
parent4f8a1e33f7a17f4896cd88398c6c503933e12aff (diff)
downloadservo-33a9c4383c2aef475ce5e8e54c9ff12ae47181c3.tar.gz
servo-33a9c4383c2aef475ce5e8e54c9ff12ae47181c3.zip
Use -stdlib=libc++ on mac for stylo bindgen
-rw-r--r--components/style/build_gecko.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs
index fb464c1f7b2..d947323ced7 100644
--- a/components/style/build_gecko.rs
+++ b/components/style/build_gecko.rs
@@ -138,7 +138,12 @@ mod bindings {
if cfg!(target_os = "linux") {
builder = builder.clang_arg("-DOS_LINUX=1");
} else if cfg!(target_os = "macos") {
- builder = builder.clang_arg("-DOS_MACOSX=1");
+ builder = builder.clang_arg("-DOS_MACOSX=1")
+ .clang_arg("-stdlib=libc++")
+ // To disable the fixup bindgen applies which adds search
+ // paths from clang command line in order to avoid potential
+ // conflict with -stdlib=libc++.
+ .clang_arg("--target=x86_64-apple-darwin");
} else if cfg!(target_env = "msvc") {
builder = builder.clang_arg("-DOS_WIN=1").clang_arg("-DWIN32=1")
// For compatibility with MSVC 2015