forked from OSchip/llvm-project
Revert "[Driver] Reland again: Default Android toolchains to libc++."
More compiler-rt test bot breakages... llvm-svn: 344963
This commit is contained in:
parent
c63b5fcb2a
commit
3577af082a
|
@ -443,12 +443,6 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
|
|||
addPathIfExists(D, SysRoot + "/usr/lib", Paths);
|
||||
}
|
||||
|
||||
ToolChain::CXXStdlibType Linux::GetDefaultCXXStdlibType() const {
|
||||
if (getTriple().isAndroid())
|
||||
return ToolChain::CST_Libcxx;
|
||||
return ToolChain::CST_Libstdcxx;
|
||||
}
|
||||
|
||||
bool Linux::HasNativeLLVMSupport() const { return true; }
|
||||
|
||||
Tool *Linux::buildLinker() const { return new tools::gnutools::Linker(*this); }
|
||||
|
|
|
@ -37,7 +37,6 @@ public:
|
|||
llvm::opt::ArgStringList &CC1Args) const override;
|
||||
void AddIAMCUIncludeArgs(const llvm::opt::ArgList &DriverArgs,
|
||||
llvm::opt::ArgStringList &CC1Args) const override;
|
||||
CXXStdlibType GetDefaultCXXStdlibType() const override;
|
||||
bool isPIEDefault() const override;
|
||||
bool IsMathErrnoDefault() const override;
|
||||
SanitizerMask getSupportedSanitizers() const override;
|
||||
|
|
|
@ -2,13 +2,21 @@
|
|||
// toolchain.
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target arm-linux-androideabi21 \
|
||||
// RUN: -target arm-linux-androideabi21 -stdlib=libstdc++ \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck %s
|
||||
// CHECK: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
||||
// CHECK: "-internal-isystem" "{{.*}}/include/c++/v1"
|
||||
// CHECK: "-internal-isystem" "{{.*}}/include/c++/4.9"
|
||||
// CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb"
|
||||
// CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a"
|
||||
// CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb"
|
||||
// CHECK: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi"
|
||||
// CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb"
|
||||
// CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a"
|
||||
// CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb"
|
||||
// CHECK: "-internal-isystem" "{{.*}}/include/c++/4.9/backward"
|
||||
// CHECK: "-internal-isystem" "{{.*}}/sysroot/usr/local/include"
|
||||
// CHECK: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
|
||||
// CHECK: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include/arm-linux-androideabi"
|
||||
|
@ -41,47 +49,21 @@
|
|||
// CHECK-14: "-L{{.*}}/sysroot/usr/lib/arm-linux-androideabi"
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target arm-linux-androideabi21 -stdlib=libstdc++ \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-STDCXX %s
|
||||
// CHECK-STDCXX: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK-STDCXX: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
||||
// CHECK-STDCXX: "-internal-isystem" "{{.*}}/include/c++/4.9"
|
||||
// CHECK-STDCXX-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb"
|
||||
// CHECK-STDCXX-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a"
|
||||
// CHECK-STDCXX-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb"
|
||||
// CHECK-STDCXX: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi"
|
||||
// CHECK-STDCXX-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb"
|
||||
// CHECK-STDCXX-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a"
|
||||
// CHECK-STDCXX-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb"
|
||||
// CHECK-STDCXX: "-internal-isystem" "{{.*}}/include/c++/4.9/backward"
|
||||
// CHECK-STDCXX: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a/thumb"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/thumb"
|
||||
// CHECK-STDCXX: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a/thumb"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/thumb"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a/thumb"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/thumb"
|
||||
// CHECK-STDCXX: "-L{{.*}}/sysroot/usr/lib/arm-linux-androideabi/21"
|
||||
// CHECK-STDCXX: "-L{{.*}}/sysroot/usr/lib/arm-linux-androideabi"
|
||||
// CHECK-STDCXX: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/arm-linux-androideabi/lib"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a/thumb"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a"
|
||||
// CHECK-STDCXX-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/thumb"
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target armv7a-none-linux-androideabi21 \
|
||||
// RUN: -target armv7a-none-linux-androideabi21 -stdlib=libstdc++ \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-ARMV7 %s
|
||||
// CHECK-ARMV7: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK-ARMV7: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
||||
// CHECK-ARMV7: "-internal-isystem" "{{.*}}/include/c++/v1"
|
||||
// CHECK-ARMV7: "-internal-isystem" "{{.*}}/include/c++/4.9"
|
||||
// CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb"
|
||||
// CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb"
|
||||
// CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi"
|
||||
// CHECK-ARMV7: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a"
|
||||
// CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb"
|
||||
// CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb"
|
||||
// CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi"
|
||||
// CHECK-ARMV7: "-internal-isystem" "{{.*}}/include/c++/4.9/backward"
|
||||
// CHECK-ARMV7: "-internal-isystem" "{{.*}}/sysroot/usr/local/include"
|
||||
// CHECK-ARMV7: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
|
||||
// CHECK-ARMV7: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include/arm-linux-androideabi"
|
||||
|
@ -107,19 +89,19 @@
|
|||
//
|
||||
// Other flags that can trigger armv7 mode.
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target arm-linux-androideabi21 \
|
||||
// RUN: -target arm-linux-androideabi21 -stdlib=libstdc++ \
|
||||
// RUN: -march=armv7 \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-ARMV7 %s
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target arm-linux-androideabi21 \
|
||||
// RUN: -target arm-linux-androideabi21 -stdlib=libstdc++ \
|
||||
// RUN: -march=armv7a \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-ARMV7 %s
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target arm-linux-androideabi21 \
|
||||
// RUN: -target arm-linux-androideabi21 -stdlib=libstdc++ \
|
||||
// RUN: -march=armv7-a \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
|
@ -127,14 +109,22 @@
|
|||
//
|
||||
// ARM thumb mode.
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target arm-linux-androideabi21 \
|
||||
// RUN: -target arm-linux-androideabi21 -stdlib=libstdc++ \
|
||||
// RUN: -mthumb \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-THUMB %s
|
||||
// CHECK-THUMB: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK-THUMB: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
||||
// CHECK-THUMB: "-internal-isystem" "{{.*}}/include/c++/v1"
|
||||
// CHECK-THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9"
|
||||
// CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7/thumb"
|
||||
// CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7"
|
||||
// CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi"
|
||||
// CHECK-THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb"
|
||||
// CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7/thumb"
|
||||
// CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7"
|
||||
// CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi"
|
||||
// CHECK-THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9/backward"
|
||||
// CHECK-THUMB: "-internal-isystem" "{{.*}}/sysroot/usr/local/include"
|
||||
// CHECK-THUMB: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
|
||||
// CHECK-THUMB: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include/arm-linux-androideabi"
|
||||
|
@ -161,14 +151,22 @@
|
|||
//
|
||||
// ARM V7 thumb mode.
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target arm-linux-androideabi21 \
|
||||
// RUN: -target arm-linux-androideabi21 -stdlib=libstdc++ \
|
||||
// RUN: -march=armv7-a -mthumb \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-ARMV7THUMB %s
|
||||
// CHECK-ARMV7THUMB: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK-ARMV7THUMB: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
||||
// CHECK-ARMV7THUMB: "-internal-isystem" "{{.*}}/include/c++/v1"
|
||||
// CHECK-ARMV7THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9"
|
||||
// CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a"
|
||||
// CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb"
|
||||
// CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi"
|
||||
// CHECK-ARMV7THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb"
|
||||
// CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a"
|
||||
// CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb"
|
||||
// CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi"
|
||||
// CHECK-ARMV7THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9/backward"
|
||||
// CHECK-ARMV7THUMB: "-internal-isystem" "{{.*}}/sysroot/usr/local/include"
|
||||
// CHECK-ARMV7THUMB: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
|
||||
// CHECK-ARMV7THUMB: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include/arm-linux-androideabi"
|
||||
|
@ -193,7 +191,7 @@
|
|||
// CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib"
|
||||
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target arm-linux-androideabi21 \
|
||||
// RUN: -target arm-linux-androideabi21 -stdlib=libstdc++ \
|
||||
// RUN: -march=armv7-a -mthumb \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
|
@ -207,19 +205,21 @@
|
|||
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target armv7a-none-linux-androideabi21 \
|
||||
// RUN: -target armv7a-none-linux-androideabi21 -stdlib=libstdc++ \
|
||||
// RUN: -mthumb \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-ARMV7THUMB %s
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target aarch64-linux-android21 \
|
||||
// RUN: -target aarch64-linux-android21 -stdlib=libstdc++ \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-AARCH64 %s
|
||||
// CHECK-AARCH64: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK-AARCH64: "-internal-isystem" "{{.*}}/include/c++/v1"
|
||||
// CHECK-AARCH64: "-internal-isystem" "{{.*}}/include/c++/4.9"
|
||||
// CHECK-AARCH64: "-internal-isystem" "{{.*}}/include/c++/4.9/aarch64-linux-android"
|
||||
// CHECK-AARCH64: "-internal-isystem" "{{.*}}/include/c++/4.9/backward"
|
||||
// CHECK-AARCH64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include/aarch64-linux-android"
|
||||
// CHECK-AARCH64: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
||||
// CHECK-AARCH64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
||||
|
@ -230,12 +230,14 @@
|
|||
// CHECK-AARCH64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.9/../../../../aarch64-linux-android/lib"
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target arm64-linux-android21 \
|
||||
// RUN: -target arm64-linux-android21 -stdlib=libstdc++ \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-ARM64 %s
|
||||
// CHECK-ARM64: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK-ARM64: "-internal-isystem" "{{.*}}/include/c++/v1"
|
||||
// CHECK-ARM64: "-internal-isystem" "{{.*}}/include/c++/4.9"
|
||||
// CHECK-ARM64: "-internal-isystem" "{{.*}}/include/c++/4.9/aarch64-linux-android"
|
||||
// CHECK-ARM64: "-internal-isystem" "{{.*}}/include/c++/4.9/backward"
|
||||
// CHECK-ARM64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include/aarch64-linux-android"
|
||||
// CHECK-ARM64: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
||||
// CHECK-ARM64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
||||
|
@ -247,12 +249,14 @@
|
|||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target mipsel-linux-android21 \
|
||||
// RUN: -mips32 \
|
||||
// RUN: -mips32 -stdlib=libstdc++ \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-MIPS %s
|
||||
// CHECK-MIPS: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK-MIPS: "-internal-isystem" "{{.*}}/include/c++/v1"
|
||||
// CHECK-MIPS: "-internal-isystem" "{{.*}}/include/c++/4.9"
|
||||
// CHECK-MIPS: "-internal-isystem" "{{.*}}/include/c++/4.9/mipsel-linux-android"
|
||||
// CHECK-MIPS: "-internal-isystem" "{{.*}}/include/c++/4.9/backward"
|
||||
// CHECK-MIPS: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
||||
// CHECK-MIPS: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
||||
// CHECK-MIPS: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -263,11 +267,14 @@
|
|||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target i686-linux-android21 \
|
||||
// RUN: -stdlib=libstdc++ \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-I686 %s
|
||||
// CHECK-I686: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK-I686: "-internal-isystem" "{{.*}}/include/c++/v1"
|
||||
// CHECK-I686: "-internal-isystem" "{{.*}}/include/c++/4.9"
|
||||
// CHECK-I686: "-internal-isystem" "{{.*}}/include/c++/4.9/i686-linux-android"
|
||||
// CHECK-I686: "-internal-isystem" "{{.*}}/include/c++/4.9/backward"
|
||||
// CHECK-I686: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include/i686-linux-android"
|
||||
// CHECK-I686: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
||||
// CHECK-I686: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
||||
|
@ -279,11 +286,14 @@
|
|||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -target x86_64-linux-android21 \
|
||||
// RUN: -stdlib=libstdc++ \
|
||||
// RUN: -B%S/Inputs/basic_android_ndk_tree \
|
||||
// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-X86_64 %s
|
||||
// CHECK-X86_64: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK-X86_64: "-internal-isystem" "{{.*}}/include/c++/v1"
|
||||
// CHECK-X86_64: "-internal-isystem" "{{.*}}/include/c++/4.9"
|
||||
// CHECK-X86_64: "-internal-isystem" "{{.*}}/include/c++/4.9/x86_64-linux-android"
|
||||
// CHECK-X86_64: "-internal-isystem" "{{.*}}/include/c++/4.9/backward"
|
||||
// CHECK-X86_64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include/x86_64-linux-android"
|
||||
// CHECK-X86_64: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
||||
// CHECK-X86_64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
||||
|
|
Loading…
Reference in New Issue