1 // Test header and library paths when Clang is used with Android standalone
4 // RUN: %clang -### %s 2>&1 \
5 // RUN: --target=arm-linux-androideabi -stdlib=libstdc++ \
6 // RUN: --gcc-toolchain=%S/Inputs/basic_android_tree \
7 // RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
10 // CHECK: "-internal-isystem" "{{.*}}/arm-linux-androideabi/include/c++/4.4.3"
11 // CHECK: "-internal-isystem" "{{.*}}/arm-linux-androideabi/include/c++/4.4.3/arm-linux-androideabi"
12 // CHECK: "-internal-externc-isystem" "{{.*}}/sysroot/include"
13 // CHECK: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
14 // CHECK: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
15 // CHECK: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.4.3"
16 // CHECK: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/lib"
17 // CHECK: "-L{{.*}}/sysroot/usr/lib"
19 // RUN: %clang -### %s 2>&1 \
20 // RUN: --target=aarch64-linux-android -stdlib=libstdc++ \
21 // RUN: --gcc-toolchain=%S/Inputs/basic_android_tree \
22 // RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
23 // RUN: | FileCheck --check-prefix=CHECK-AARCH64 %s
24 // CHECK-AARCH64: "-cc1"
25 // CHECK-AARCH64: "-internal-isystem" "{{.*}}/aarch64-linux-android/include/c++/4.8"
26 // CHECK-AARCH64: "-internal-isystem" "{{.*}}/aarch64-linux-android/include/c++/4.8/aarch64-linux-android"
27 // CHECK-AARCH64: "-internal-externc-isystem" "{{.*}}/sysroot/include"
28 // CHECK-AARCH64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
29 // CHECK-AARCH64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
30 // CHECK-AARCH64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.8"
31 // CHECK-AARCH64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.8/../../../../aarch64-linux-android/lib"
32 // CHECK-AARCH64: "-L{{.*}}/sysroot/usr/lib"
34 // RUN: %clang -### %s 2>&1 \
35 // RUN: --target=arm64-linux-android -stdlib=libstdc++ \
36 // RUN: --gcc-toolchain=%S/Inputs/basic_android_tree \
37 // RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
38 // RUN: | FileCheck --check-prefix=CHECK-ARM64 %s
39 // CHECK-ARM64: "-cc1"
40 // CHECK-ARM64: "-internal-isystem" "{{.*}}/aarch64-linux-android/include/c++/4.8"
41 // CHECK-ARM64: "-internal-isystem" "{{.*}}/aarch64-linux-android/include/c++/4.8/aarch64-linux-android"
42 // CHECK-ARM64: "-internal-externc-isystem" "{{.*}}/sysroot/include"
43 // CHECK-ARM64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
44 // CHECK-ARM64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
45 // CHECK-ARM64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.8"
46 // CHECK-ARM64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.8/../../../../aarch64-linux-android/lib"
47 // CHECK-ARM64: "-L{{.*}}/sysroot/usr/lib"