2012-09-03 17:05:50 +08:00
|
|
|
// Test header and library paths when Clang is used with Android standalone
|
|
|
|
// toolchain.
|
|
|
|
//
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
2016-02-12 15:48:28 +08:00
|
|
|
// RUN: -target arm-linux-androideabi -stdlib=libstdc++ \
|
2012-09-03 17:05:50 +08:00
|
|
|
// RUN: -B%S/Inputs/basic_android_tree \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
|
|
|
|
// RUN: | FileCheck %s
|
2012-09-03 19:49:36 +08:00
|
|
|
// CHECK: {{.*}}clang{{.*}}" "-cc1"
|
2012-09-03 17:05:50 +08:00
|
|
|
// CHECK: "-internal-isystem" "{{.*}}/arm-linux-androideabi/include/c++/4.4.3"
|
|
|
|
// CHECK: "-internal-isystem" "{{.*}}/arm-linux-androideabi/include/c++/4.4.3/arm-linux-androideabi"
|
|
|
|
// CHECK: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
|
|
|
// CHECK: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
|
|
|
// CHECK: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.4.3"
|
|
|
|
// CHECK: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/lib"
|
|
|
|
// CHECK: "-L{{.*}}/sysroot/usr/lib"
|
2012-10-04 01:46:38 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
2016-02-12 15:48:28 +08:00
|
|
|
// RUN: -target aarch64-linux-android -stdlib=libstdc++ \
|
2014-04-23 21:36:23 +08:00
|
|
|
// RUN: -B%S/Inputs/basic_android_tree \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-AARCH64 %s
|
|
|
|
// CHECK-AARCH64: {{.*}}clang{{.*}}" "-cc1"
|
|
|
|
// CHECK-AARCH64: "-internal-isystem" "{{.*}}/aarch64-linux-android/include/c++/4.8"
|
|
|
|
// CHECK-AARCH64: "-internal-isystem" "{{.*}}/aarch64-linux-android/include/c++/4.8/aarch64-linux-android"
|
|
|
|
// CHECK-AARCH64: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
|
|
|
// CHECK-AARCH64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
|
|
|
// CHECK-AARCH64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-AARCH64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.8"
|
|
|
|
// CHECK-AARCH64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.8/../../../../aarch64-linux-android/lib"
|
|
|
|
// CHECK-AARCH64: "-L{{.*}}/sysroot/usr/lib"
|
|
|
|
//
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
2016-02-12 15:48:28 +08:00
|
|
|
// RUN: -target arm64-linux-android -stdlib=libstdc++ \
|
2014-04-30 18:52:05 +08:00
|
|
|
// RUN: -B%S/Inputs/basic_android_tree \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-ARM64 %s
|
|
|
|
// CHECK-ARM64: {{.*}}clang{{.*}}" "-cc1"
|
|
|
|
// CHECK-ARM64: "-internal-isystem" "{{.*}}/aarch64-linux-android/include/c++/4.8"
|
|
|
|
// CHECK-ARM64: "-internal-isystem" "{{.*}}/aarch64-linux-android/include/c++/4.8/aarch64-linux-android"
|
|
|
|
// CHECK-ARM64: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
|
|
|
// CHECK-ARM64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
|
|
|
// CHECK-ARM64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-ARM64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.8"
|
|
|
|
// CHECK-ARM64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.8/../../../../aarch64-linux-android/lib"
|
|
|
|
// CHECK-ARM64: "-L{{.*}}/sysroot/usr/lib"
|
|
|
|
//
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
2012-10-04 01:46:38 +08:00
|
|
|
// RUN: -target mipsel-linux-android \
|
2016-02-12 15:48:28 +08:00
|
|
|
// RUN: -mips32 -stdlib=libstdc++ \
|
2012-10-04 01:46:38 +08:00
|
|
|
// RUN: -B%S/Inputs/basic_android_tree \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-MIPS %s
|
|
|
|
// CHECK-MIPS: {{.*}}clang{{.*}}" "-cc1"
|
|
|
|
// CHECK-MIPS: "-internal-isystem" "{{.*}}/mipsel-linux-android/include/c++/4.4.3"
|
|
|
|
// CHECK-MIPS: "-internal-isystem" "{{.*}}/mipsel-linux-android/include/c++/4.4.3/mipsel-linux-android"
|
|
|
|
// CHECK-MIPS: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
|
|
|
// CHECK-MIPS: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
|
|
|
// CHECK-MIPS: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-MIPS: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.4.3"
|
|
|
|
// CHECK-MIPS: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.4.3/../../../../mipsel-linux-android/lib"
|
|
|
|
// CHECK-MIPS: "-L{{.*}}/sysroot/usr/lib"
|
|
|
|
//
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
|
|
// RUN: -target mipsel-linux-android \
|
2016-02-12 15:48:28 +08:00
|
|
|
// RUN: -march=mips32 -mips32r2 -stdlib=libstdc++ \
|
2012-10-04 01:46:38 +08:00
|
|
|
// RUN: -B%S/Inputs/basic_android_tree \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-MIPSR2 %s
|
|
|
|
// CHECK-MIPSR2: {{.*}}clang{{.*}}" "-cc1"
|
|
|
|
// CHECK-MIPSR2: "-internal-isystem" "{{.*}}/mipsel-linux-android/include/c++/4.4.3"
|
|
|
|
// CHECK-MIPSR2: "-internal-isystem" "{{.*}}/mipsel-linux-android/include/c++/4.4.3/mipsel-linux-android"
|
|
|
|
// CHECK-MIPSR2: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
|
|
|
// CHECK-MIPSR2: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
|
|
|
// CHECK-MIPSR2: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-MIPSR2: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.4.3/mips-r2"
|
|
|
|
// CHECK-MIPSR2: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.4.3/../../../../mipsel-linux-android/lib"
|
|
|
|
// CHECK-MIPSR2: "-L{{.*}}/sysroot/usr/lib"
|
|
|
|
//
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
|
|
// RUN: -target mipsel-linux-android \
|
2016-02-12 15:48:28 +08:00
|
|
|
// RUN: -mips32 -march=mips32r2 -stdlib=libstdc++ \
|
2012-10-04 01:46:38 +08:00
|
|
|
// RUN: -B%S/Inputs/basic_android_tree \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-MIPSR2-A %s
|
|
|
|
// CHECK-MIPSR2-A: {{.*}}clang{{.*}}" "-cc1"
|
|
|
|
// CHECK-MIPSR2-A: "-internal-isystem" "{{.*}}/mipsel-linux-android/include/c++/4.4.3"
|
|
|
|
// CHECK-MIPSR2-A: "-internal-isystem" "{{.*}}/mipsel-linux-android/include/c++/4.4.3/mipsel-linux-android"
|
|
|
|
// CHECK-MIPSR2-A: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
|
|
|
// CHECK-MIPSR2-A: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
|
|
|
// CHECK-MIPSR2-A: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-MIPSR2-A: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.4.3/mips-r2"
|
|
|
|
// CHECK-MIPSR2-A: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.4.3/../../../../mipsel-linux-android/lib"
|
|
|
|
// CHECK-MIPSR2-A: "-L{{.*}}/sysroot/usr/lib"
|
2015-02-25 15:31:12 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
|
|
// RUN: -target mipsel-linux-android \
|
2016-02-12 15:48:28 +08:00
|
|
|
// RUN: -mips32r6 -stdlib=libstdc++ \
|
2015-02-25 15:31:12 +08:00
|
|
|
// RUN: -B%S/Inputs/basic_android_tree \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-MIPSR6 %s
|
|
|
|
// CHECK-MIPSR6: {{.*}}clang{{.*}}" "-cc1"
|
|
|
|
// CHECK-MIPSR6: "-internal-isystem" "{{.*}}/mipsel-linux-android/include/c++/4.4.3"
|
|
|
|
// CHECK-MIPSR6: "-internal-isystem" "{{.*}}/mipsel-linux-android/include/c++/4.4.3/mipsel-linux-android"
|
|
|
|
// CHECK-MIPSR6: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
|
|
|
// CHECK-MIPSR6: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
|
|
|
// CHECK-MIPSR6: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
|
|
|
// CHECK-MIPSR6: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.4.3/mips-r6"
|
|
|
|
// CHECK-MIPSR6: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.4.3/../../../../mipsel-linux-android/lib"
|
|
|
|
// CHECK-MIPSR6: "-L{{.*}}/sysroot/usr/lib"
|