1 // Test header and library paths when Clang is used with Android standalone 2 // toolchain. 3 // 4 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 5 // RUN: -target arm-linux-androideabi -stdlib=libstdc++ \ 6 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 7 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 8 // RUN: | FileCheck %s 9 // CHECK: {{.*}}clang{{.*}}" "-cc1" 10 // CHECK: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 11 // CHECK: "-internal-isystem" "{{.*}}/include/c++/4.9" 12 // CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb" 13 // CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a" 14 // CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb" 15 // CHECK: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi" 16 // CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb" 17 // CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a" 18 // CHECK-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb" 19 // CHECK: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 20 // CHECK: "-internal-isystem" "{{.*}}/sysroot/usr/local/include" 21 // CHECK: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include" 22 // CHECK: "-internal-externc-isystem" "{{.*}}/sysroot/include" 23 // CHECK: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 24 // CHECK: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 25 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a/thumb" 26 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a" 27 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/thumb" 28 // CHECK: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9" 29 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a/thumb" 30 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a" 31 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/thumb" 32 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a/thumb" 33 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a" 34 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/thumb" 35 // CHECK: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/arm-linux-androideabi/lib" 36 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a/thumb" 37 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a" 38 // CHECK-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/thumb" 39 // CHECK: "-L{{.*}}/sysroot/usr/lib" 40 // 41 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 42 // RUN: -target armv7a-none-linux-androideabi -stdlib=libstdc++ \ 43 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 44 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 45 // RUN: | FileCheck --check-prefix=CHECK-ARMV7 %s 46 // CHECK-ARMV7: {{.*}}clang{{.*}}" "-cc1" 47 // CHECK-ARMV7: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 48 // CHECK-ARMV7: "-internal-isystem" "{{.*}}/include/c++/4.9" 49 // CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb" 50 // CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb" 51 // CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi" 52 // CHECK-ARMV7: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a" 53 // CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb" 54 // CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb" 55 // CHECK-ARMV7-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi" 56 // CHECK-ARMV7: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 57 // CHECK-ARMV7: "-internal-isystem" "{{.*}}/sysroot/usr/local/include" 58 // CHECK-ARMV7: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include" 59 // CHECK-ARMV7: "-internal-externc-isystem" "{{.*}}/sysroot/include" 60 // CHECK-ARMV7: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 61 // CHECK-ARMV7: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 62 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a/thumb" 63 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/thumb" 64 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9" 65 // CHECK-ARMV7: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a" 66 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a/thumb" 67 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/thumb" 68 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9" 69 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/thumb" 70 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a/thumb" 71 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib" 72 // CHECK-ARMV7: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a" 73 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/thumb" 74 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a/thumb" 75 // CHECK-ARMV7-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib" 76 // CHECK-ARMV7: "-L{{.*}}/sysroot/usr/lib" 77 // 78 // Other flags that can trigger armv7 mode. 79 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 80 // RUN: -target arm-linux-androideabi -stdlib=libstdc++ \ 81 // RUN: -march=armv7 \ 82 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 83 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 84 // RUN: | FileCheck --check-prefix=CHECK-ARMV7 %s 85 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 86 // RUN: -target arm-linux-androideabi -stdlib=libstdc++ \ 87 // RUN: -march=armv7a \ 88 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 89 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 90 // RUN: | FileCheck --check-prefix=CHECK-ARMV7 %s 91 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 92 // RUN: -target arm-linux-androideabi -stdlib=libstdc++ \ 93 // RUN: -march=armv7-a \ 94 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 95 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 96 // RUN: | FileCheck --check-prefix=CHECK-ARMV7 %s 97 // 98 // ARM thumb mode. 99 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 100 // RUN: -target arm-linux-androideabi -stdlib=libstdc++ \ 101 // RUN: -mthumb \ 102 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 103 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 104 // RUN: | FileCheck --check-prefix=CHECK-THUMB %s 105 // CHECK-THUMB: {{.*}}clang{{.*}}" "-cc1" 106 // CHECK-THUMB: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 107 // CHECK-THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9" 108 // CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7/thumb" 109 // CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7" 110 // CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi" 111 // CHECK-THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb" 112 // CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7/thumb" 113 // CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7" 114 // CHECK-THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi" 115 // CHECK-THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 116 // CHECK-THUMB: "-internal-isystem" "{{.*}}/sysroot/usr/local/include" 117 // CHECK-THUMB: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include" 118 // CHECK-THUMB: "-internal-externc-isystem" "{{.*}}/sysroot/include" 119 // CHECK-THUMB: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 120 // CHECK-THUMB: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 121 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a/thumb" 122 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a" 123 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9" 124 // CHECK-THUMB: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/thumb" 125 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a/thumb" 126 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a" 127 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9" 128 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7" 129 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7/thumb" 130 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib" 131 // CHECK-THUMB: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/thumb" 132 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7" 133 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7/thumb" 134 // CHECK-THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib" 135 // CHECK-THUMB: "-L{{.*}}/sysroot/usr/lib" 136 // 137 // ARM V7 thumb mode. 138 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 139 // RUN: -target arm-linux-androideabi -stdlib=libstdc++ \ 140 // RUN: -march=armv7-a -mthumb \ 141 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 142 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 143 // RUN: | FileCheck --check-prefix=CHECK-ARMV7THUMB %s 144 // CHECK-ARMV7THUMB: {{.*}}clang{{.*}}" "-cc1" 145 // CHECK-ARMV7THUMB: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 146 // CHECK-ARMV7THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9" 147 // CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a" 148 // CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb" 149 // CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi" 150 // CHECK-ARMV7THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a/thumb" 151 // CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/armv7-a" 152 // CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi/thumb" 153 // CHECK-ARMV7THUMB-NOT: "-internal-isystem" "{{.*}}/include/c++/4.9/arm-linux-androideabi" 154 // CHECK-ARMV7THUMB: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 155 // CHECK-ARMV7THUMB: "-internal-isystem" "{{.*}}/sysroot/usr/local/include" 156 // CHECK-ARMV7THUMB: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include" 157 // CHECK-ARMV7THUMB: "-internal-externc-isystem" "{{.*}}/sysroot/include" 158 // CHECK-ARMV7THUMB: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 159 // CHECK-ARMV7THUMB: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 160 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/thumb" 161 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a" 162 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9" 163 // CHECK-ARMV7THUMB: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a/thumb" 164 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/thumb" 165 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/armv7-a" 166 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9" 167 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/thumb" 168 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a" 169 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib" 170 // CHECK-ARMV7THUMB: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a/thumb" 171 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/thumb" 172 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib/armv7-a" 173 // CHECK-ARMV7THUMB-NOT: "-L{{.*}}/lib/gcc/arm-linux-androideabi/4.9/../{{[^ ]*}}/lib" 174 // CHECK-ARMV7THUMB: "-L{{.*}}/sysroot/usr/lib" 175 // 176 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 177 // RUN: -target armv7a-none-linux-androideabi -stdlib=libstdc++ \ 178 // RUN: -mthumb \ 179 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 180 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 181 // RUN: | FileCheck --check-prefix=CHECK-ARMV7THUMB %s 182 // 183 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 184 // RUN: -target aarch64-linux-android -stdlib=libstdc++ \ 185 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 186 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 187 // RUN: | FileCheck --check-prefix=CHECK-AARCH64 %s 188 // CHECK-AARCH64: {{.*}}clang{{.*}}" "-cc1" 189 // CHECK-AARCH64: "-internal-isystem" "{{.*}}/include/c++/4.9" 190 // CHECK-AARCH64: "-internal-isystem" "{{.*}}/include/c++/4.9/aarch64-linux-android" 191 // CHECK-AARCH64: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 192 // CHECK-AARCH64: "-internal-externc-isystem" "{{.*}}/sysroot/include" 193 // CHECK-AARCH64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 194 // CHECK-AARCH64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 195 // CHECK-AARCH64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.9" 196 // CHECK-AARCH64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.9/../../../../aarch64-linux-android/lib" 197 // CHECK-AARCH64: "-L{{.*}}/sysroot/usr/lib" 198 // 199 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 200 // RUN: -target arm64-linux-android -stdlib=libstdc++ \ 201 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 202 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 203 // RUN: | FileCheck --check-prefix=CHECK-ARM64 %s 204 // CHECK-ARM64: {{.*}}clang{{.*}}" "-cc1" 205 // CHECK-ARM64: "-internal-isystem" "{{.*}}/include/c++/4.9" 206 // CHECK-ARM64: "-internal-isystem" "{{.*}}/include/c++/4.9/aarch64-linux-android" 207 // CHECK-ARM64: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 208 // CHECK-ARM64: "-internal-externc-isystem" "{{.*}}/sysroot/include" 209 // CHECK-ARM64: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 210 // CHECK-ARM64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 211 // CHECK-ARM64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.9" 212 // CHECK-ARM64: "-L{{.*}}/lib/gcc/aarch64-linux-android/4.9/../../../../aarch64-linux-android/lib" 213 // CHECK-ARM64: "-L{{.*}}/sysroot/usr/lib" 214 // 215 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 216 // RUN: -target mipsel-linux-android \ 217 // RUN: -mips32 -stdlib=libstdc++ \ 218 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 219 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 220 // RUN: | FileCheck --check-prefix=CHECK-MIPS %s 221 // CHECK-MIPS: {{.*}}clang{{.*}}" "-cc1" 222 // CHECK-MIPS: "-internal-isystem" "{{.*}}/include/c++/4.9" 223 // CHECK-MIPS: "-internal-isystem" "{{.*}}/include/c++/4.9/mipsel-linux-android" 224 // CHECK-MIPS: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 225 // CHECK-MIPS: "-internal-externc-isystem" "{{.*}}/sysroot/include" 226 // CHECK-MIPS: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 227 // CHECK-MIPS: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 228 // CHECK-MIPS: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.9" 229 // CHECK-MIPS: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.9/../../../../mipsel-linux-android/lib" 230 // CHECK-MIPS: "-L{{.*}}/sysroot/usr/lib" 231 // 232 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 233 // RUN: -target mipsel-linux-android \ 234 // RUN: -march=mips32 -mips32r2 -stdlib=libstdc++ \ 235 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 236 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 237 // RUN: | FileCheck --check-prefix=CHECK-MIPSR2 %s 238 // CHECK-MIPSR2: {{.*}}clang{{.*}}" "-cc1" 239 // CHECK-MIPSR2: "-internal-isystem" "{{.*}}/include/c++/4.9" 240 // CHECK-MIPSR2: "-internal-isystem" "{{.*}}/include/c++/4.9/mipsel-linux-android/mips-r2" 241 // CHECK-MIPSR2: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 242 // CHECK-MIPSR2: "-internal-externc-isystem" "{{.*}}/sysroot/include" 243 // CHECK-MIPSR2: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 244 // CHECK-MIPSR2: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 245 // CHECK-MIPSR2: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.9/mips-r2" 246 // CHECK-MIPSR2: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.9/../../../../mipsel-linux-android/lib/../libr2" 247 // CHECK-MIPSR2: "-L{{.*}}/sysroot/usr/lib/../libr2" 248 // 249 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 250 // RUN: -target mipsel-linux-android \ 251 // RUN: -mips32r6 -stdlib=libstdc++ \ 252 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 253 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 254 // RUN: | FileCheck --check-prefix=CHECK-MIPSR6 %s 255 // CHECK-MIPSR6: {{.*}}clang{{.*}}" "-cc1" 256 // CHECK-MIPSR6: "-internal-isystem" "{{.*}}/include/c++/4.9" 257 // CHECK-MIPSR6: "-internal-isystem" "{{.*}}/include/c++/4.9/mipsel-linux-android/mips-r6" 258 // CHECK-MIPSR6: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 259 // CHECK-MIPSR6: "-internal-externc-isystem" "{{.*}}/sysroot/include" 260 // CHECK-MIPSR6: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 261 // CHECK-MIPSR6: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 262 // CHECK-MIPSR6: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.9/mips-r6" 263 // CHECK-MIPSR6: "-L{{.*}}/lib/gcc/mipsel-linux-android/4.9/../../../../mipsel-linux-android/lib/../libr6" 264 // CHECK-MIPSR6: "-L{{.*}}/sysroot/usr/lib/../libr6" 265 // 266 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 267 // RUN: -target mips64el-linux-android \ 268 // RUN: -march=mips32 -mips32r2 -stdlib=libstdc++ \ 269 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 270 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 271 // RUN: | FileCheck --check-prefix=CHECK-MIPS64-R2 %s 272 // CHECK-MIPS64-R2: {{.*}}clang{{.*}}" "-cc1" 273 // CHECK-MIPS64-R2: "-internal-isystem" "{{.*}}/include/c++/4.9" 274 // CHECK-MIPS64-R2: "-internal-isystem" "{{.*}}/include/mips64el-linux-android/c++/4.9/mips-r2" 275 // CHECK-MIPS64-R2: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 276 // CHECK-MIPS64-R2: "-internal-externc-isystem" "{{.*}}/sysroot/include" 277 // CHECK-MIPS64-R2: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 278 // CHECK-MIPS64-R2: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 279 // CHECK-MIPS64-R2: "-L{{.*}}/lib/gcc/mips64el-linux-android/4.9/32/mips-r2" 280 // CHECK-MIPS64-R2: "-L{{.*}}/lib/gcc/mips64el-linux-android/4.9/../../../../mips64el-linux-android/lib/../libr2" 281 // CHECK-MIPS64-R2: "-L{{.*}}/sysroot/usr/lib/../libr2" 282 // 283 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 284 // RUN: -target mips64el-linux-android \ 285 // RUN: -march=mips32 -mips32r6 -stdlib=libstdc++ \ 286 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 287 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 288 // RUN: | FileCheck --check-prefix=CHECK-MIPS64-R6 %s 289 // CHECK-MIPS64-R6: {{.*}}clang{{.*}}" "-cc1" 290 // CHECK-MIPS64-R6: "-internal-isystem" "{{.*}}/include/c++/4.9" 291 // CHECK-MIPS64-R6: "-internal-isystem" "{{.*}}/include/mips64el-linux-android/c++/4.9/mips-r6" 292 // CHECK-MIPS64-R6: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 293 // CHECK-MIPS64-R6: "-internal-externc-isystem" "{{.*}}/sysroot/include" 294 // CHECK-MIPS64-R6: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 295 // CHECK-MIPS64-R6: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 296 // CHECK-MIPS64-R6: "-L{{.*}}/lib/gcc/mips64el-linux-android/4.9/32/mips-r6" 297 // CHECK-MIPS64-R6: "-L{{.*}}/lib/gcc/mips64el-linux-android/4.9/../../../../mips64el-linux-android/lib/../libr6" 298 // CHECK-MIPS64-R6: "-L{{.*}}/sysroot/usr/lib/../libr6" 299 // 300 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 301 // RUN: -target i686-linux-android \ 302 // RUN: -stdlib=libstdc++ \ 303 // RUN: -B%S/Inputs/basic_android_ndk_tree \ 304 // RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ 305 // RUN: | FileCheck --check-prefix=CHECK-I686 %s 306 // CHECK-I686: {{.*}}clang{{.*}}" "-cc1" 307 // CHECK-I686: "-internal-isystem" "{{.*}}/include/c++/4.9" 308 // CHECK-I686: "-internal-isystem" "{{.*}}/include/c++/4.9/i686-linux-android" 309 // CHECK-I686: "-internal-isystem" "{{.*}}/include/c++/4.9/backward" 310 // CHECK-I686: "-internal-externc-isystem" "{{.*}}/sysroot/include" 311 // CHECK-I686: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" 312 // CHECK-I686: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 313 // CHECK-I686: "-L{{.*}}/lib/gcc/i686-linux-android/4.9" 314 // CHECK-I686: "-L{{.*}}/lib/gcc/i686-linux-android/4.9/../../../../i686-linux-android/lib" 315 // CHECK-I686: "-L{{.*}}/sysroot/usr/lib" 316