brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 14856e2 Raw
39 lines · cpp
1// Check that we only find libc++ in the installation directory when it contains2// an Android-specific include directory.3 4// RUN: mkdir -p %t1/bin5// RUN: mkdir -p %t1/include/c++/v16// RUN: mkdir -p %t1/sysroot7// RUN: %clang -target aarch64-none-linux-android -ccc-install-dir %t1/bin \8// RUN:   --sysroot=%t1/sysroot -stdlib=libc++ -fsyntax-only \9// RUN:   %s -### 2>&1 | FileCheck %s10// CHECK-NOT: "-internal-isystem" "{{.*}}v1"11 12// RUN: mkdir -p %t2/bin13// RUN: mkdir -p %t2/include/c++/v114// RUN: mkdir -p %t2/sysroot15// RUN: mkdir -p %t2/include/aarch64-none-linux-android/c++/v116// RUN: mkdir -p %t2/include/aarch64-none-linux-android23/c++/v117 18// RUN: %clang -target aarch64-none-linux-android -ccc-install-dir %/t2/bin \19// RUN:   --sysroot=%t2/sysroot -stdlib=libc++ -fsyntax-only \20// RUN:   %s -### 2>&1 | FileCheck --check-prefix=ANDROID-DIR -DDIR=%/t2/bin %s21 22// RUN: %clang -target aarch64-none-linux-android21 -ccc-install-dir %/t2/bin \23// RUN:   --sysroot=%t2/sysroot -stdlib=libc++ -fsyntax-only \24// RUN:   %s -### 2>&1 | FileCheck --check-prefix=ANDROID-DIR -DDIR=%/t2/bin %s25 26// ANDROID-DIR: "-internal-isystem" "[[DIR]][[SEP:/|\\\\]]..[[SEP]]include[[SEP]]aarch64-none-linux-android[[SEP]]c++[[SEP]]v1"27// ANDROID-DIR-SAME: "-internal-isystem" "[[DIR]][[SEP]]..[[SEP]]include[[SEP]]c++[[SEP]]v1"28 29// RUN: %clang -target aarch64-none-linux-android23 -ccc-install-dir %/t2/bin \30// RUN:   --sysroot=%t2/sysroot -stdlib=libc++ -fsyntax-only \31// RUN:   %s -### 2>&1 | FileCheck --check-prefix=ANDROID23-DIR -DDIR=%/t2/bin %s32 33// RUN: %clang -target aarch64-none-linux-android28 -ccc-install-dir %/t2/bin \34// RUN:   --sysroot=%t2/sysroot -stdlib=libc++ -fsyntax-only \35// RUN:   %s -### 2>&1 | FileCheck --check-prefix=ANDROID23-DIR -DDIR=%/t2/bin %s36 37// ANDROID23-DIR: "-internal-isystem" "[[DIR]][[SEP:/|\\\\]]..[[SEP]]include[[SEP]]aarch64-none-linux-android23[[SEP]]c++[[SEP]]v1"38// ANDROID23-DIR-SAME: "-internal-isystem" "[[DIR]][[SEP]]..[[SEP]]include[[SEP]]c++[[SEP]]v1"39