[clang] 33f19a6 - [Haiku] Don't assume clang was build with libstdc++ as default (#65871)

via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 9 21:00:11 PDT 2023


Author: Alex Brachet
Date: 2023-09-10T00:00:08-04:00
New Revision: 33f19a6f1c279f5f77a577fae41f13133522497b

URL: https://github.com/llvm/llvm-project/commit/33f19a6f1c279f5f77a577fae41f13133522497b
DIFF: https://github.com/llvm/llvm-project/commit/33f19a6f1c279f5f77a577fae41f13133522497b.diff

LOG: [Haiku] Don't assume clang was build with libstdc++ as default (#65871)

This test fails with `CLANG_DEFAULT_CXX_STDLIB=libc++`

Added: 
    

Modified: 
    clang/test/Driver/haiku.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/haiku.cpp b/clang/test/Driver/haiku.cpp
index f022013d1ef79b7..64018e8236b2824 100644
--- a/clang/test/Driver/haiku.cpp
+++ b/clang/test/Driver/haiku.cpp
@@ -1,5 +1,5 @@
 // Check the C++ header path (libstdc++)
-// RUN: %clangxx --target=x86_64-unknown-haiku -### %s 2>&1 \
+// RUN: %clangxx --target=x86_64-unknown-haiku --stdlib=libstdc++ -### %s 2>&1 \
 // RUN:   --sysroot=%S/Inputs/haiku_x86_64_tree \
 // RUN:   | FileCheck --check-prefix=CHECK-LIBSTDCXX-HEADER-PATH %s
 // CHECK-LIBSTDCXX-HEADER-PATH: "-internal-isystem" "[[SYSROOT:[^"]+]]/boot/system/develop/headers/c++"


        


More information about the cfe-commits mailing list