]> granicus.if.org Git - clang/commitdiff
Fix linux-header-search.cpp with CLANG_DEFAULT_CXX_STDLIB
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Tue, 31 Jul 2018 11:36:14 +0000 (11:36 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Tue, 31 Jul 2018 11:36:14 +0000 (11:36 +0000)
This configuration was broken after r338294 because Clang might
be configured to always use libc++.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338360 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/linux-header-search.cpp

index 6d1c22067ac48a20fc62cd3b0bdc4edcf23d466a..f545b439b4abbf68c485a810398139304cef261b 100644 (file)
 
 // Check header search on OpenEmbedded ARM.
 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
-// RUN:     -target arm-oe-linux-gnueabi \
+// RUN:     -target arm-oe-linux-gnueabi -stdlib=libstdc++ \
 // RUN:     --sysroot=%S/Inputs/openembedded_arm_linux_tree \
 // RUN:   | FileCheck --check-prefix=CHECK-OE-ARM %s
 
 
 // Check header search on OpenEmbedded AArch64.
 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
-// RUN:     -target aarch64-oe-linux \
+// RUN:     -target aarch64-oe-linux -stdlib=libstdc++ \
 // RUN:     --sysroot=%S/Inputs/openembedded_aarch64_linux_tree \
 // RUN:   | FileCheck --check-prefix=CHECK-OE-AARCH64 %s