From f328ced8f9b21c4b89afe228ae619d2849171e3b Mon Sep 17 00:00:00 2001 From: "Alison G. Watson" Date: Thu, 4 Jul 2019 04:47:56 -0400 Subject: [PATCH] tycho: use clang libc++ on mac --- tycho/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tycho/build.rs b/tycho/build.rs index 4dd8311..836b3f2 100644 --- a/tycho/build.rs +++ b/tycho/build.rs @@ -54,7 +54,9 @@ fn main() println!("cargo:rustc-link-lib={}={}Widgets", ty, pre); println!("cargo:rustc-link-lib={}={}Gui", ty, pre); - if !cfg!(target_os = "macos") { + if cfg!(target_os = "macos") { + println!("cargo:rustc-link-lib=dylib=c++"); + } else { println!("cargo:rustc-link-lib=dylib=stdc++"); } }