forked from OSchip/llvm-project
Capture the resource directory and use it for subsequent checks.
This is the same tactic used in linux-header-search.cpp. llvm-svn: 272568
This commit is contained in:
parent
93495de265
commit
f2a34a889d
|
@ -7,6 +7,7 @@
|
|||
// 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++/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"
|
||||
|
@ -17,7 +18,7 @@
|
|||
// 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" "{{.*(/|\\\\)}}lib{{(64)?(/|\\\\)}}clang{{(/|\\\\)[^"]+(/|\\\\)}}include"
|
||||
// CHECK: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
|
||||
// CHECK: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
||||
// CHECK: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
||||
// CHECK: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -43,6 +44,7 @@
|
|||
// 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++/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"
|
||||
|
@ -53,7 +55,7 @@
|
|||
// 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" "{{.*(/|\\\\)}}lib{{(64)?(/|\\\\)}}clang{{(/|\\\\)[^"]+(/|\\\\)}}include"
|
||||
// CHECK-ARMV7: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
|
||||
// CHECK-ARMV7: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
||||
// CHECK-ARMV7: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
||||
// CHECK-ARMV7: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -101,6 +103,7 @@
|
|||
// 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++/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"
|
||||
|
@ -111,7 +114,7 @@
|
|||
// 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" "{{.*(/|\\\\)}}lib{{(64)?(/|\\\\)}}clang{{(/|\\\\)[^"]+(/|\\\\)}}include"
|
||||
// CHECK-THUMB: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
|
||||
// CHECK-THUMB: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
||||
// CHECK-THUMB: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
||||
// CHECK-THUMB: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -139,6 +142,7 @@
|
|||
// 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++/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"
|
||||
|
@ -149,7 +153,7 @@
|
|||
// 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" "{{.*(/|\\\\)}}lib{{(64)?(/|\\\\)}}clang{{(/|\\\\)[^"]+(/|\\\\)}}include"
|
||||
// CHECK-ARMV7THUMB: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
|
||||
// CHECK-ARMV7THUMB: "-internal-externc-isystem" "{{.*}}/sysroot/include"
|
||||
// CHECK-ARMV7THUMB: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include"
|
||||
// CHECK-ARMV7THUMB: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
|
Loading…
Reference in New Issue