From 400dec059e9d71b06e6cfa5cfe399b4c57eb8119 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 23 Jan 2019 16:17:24 -0800 Subject: [PATCH] librustc_llvm: default to libc++ for darwin --- src/librustc_llvm/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs index d4a3ae273fc..ec3dff783c4 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -243,6 +243,8 @@ fn main() { "c++" } else if target.contains("freebsd") { "c++" + } else if target.contains("darwin") { + "c++" } else if target.contains("netbsd") && llvm_static_stdcpp.is_some() { // NetBSD uses a separate library when relocation is required "stdc++_pic"