From 3a7977e3ca65ae8b6da8d81f475189333c149ac4 Mon Sep 17 00:00:00 2001 From: Kai Luo Date: Thu, 23 Mar 2023 16:33:54 +0800 Subject: [PATCH] Link against libc++ on AIX --- compiler/rustc_llvm/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index 9fe59a1d8261b..f8e9ec535e456 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -333,6 +333,7 @@ fn main() { } else if target.contains("darwin") || target.contains("freebsd") || target.contains("windows-gnullvm") + || target.contains("aix") { "c++" } else if target.contains("netbsd") && llvm_static_stdcpp.is_some() {