|
6 | 6 | // By default, we should search for libc++ next to the driver.
|
7 | 7 | // RUN: mkdir -p %t/bin
|
8 | 8 | // RUN: mkdir -p %t/include/c++/v1
|
9 |
| -// RUN: %clang -target aarch64-linux-gnu -ccc-install-dir %t/bin \ |
| 9 | +// RUN: %clang -target aarch64-linux-android -ccc-install-dir %t/bin \ |
10 | 10 | // RUN: -stdlib=libc++ -fsyntax-only %s -### 2>&1 | \
|
11 | 11 | // RUN: FileCheck -check-prefix=LIBCXX %s
|
12 | 12 | // RUN: %clang -target x86_64-apple-darwin -ccc-install-dir %t/bin \
|
|
16 | 16 | // LIBCXX: "-internal-isystem" "[[INSTALLDIR]]/../include/c++/v1"
|
17 | 17 |
|
18 | 18 | // Passing -stdlib++-isystem should suppress the default search.
|
19 |
| -// RUN: %clang -target aarch64-linux-gnu -ccc-install-dir %t/bin \ |
| 19 | +// RUN: %clang -target aarch64-linux-android -ccc-install-dir %t/bin \ |
20 | 20 | // RUN: -stdlib++-isystem /tmp/foo -stdlib++-isystem /tmp/bar -stdlib=libc++ \
|
21 | 21 | // RUN: -fsyntax-only %s -### 2>&1 | FileCheck -check-prefix=NODEFAULT %s
|
22 | 22 | // RUN: %clang -target x86_64-apple-darwin -ccc-install-dir %t/bin \
|
|
26 | 26 | // NODEFAULT-NOT: "-internal-isystem" "[[INSTALLDIR]]/../include/c++/v1"
|
27 | 27 |
|
28 | 28 | // And we should add it as an -internal-isystem.
|
29 |
| -// RUN: %clang -target aarch64-linux-gnu -ccc-install-dir %t/bin \ |
| 29 | +// RUN: %clang -target aarch64-linux-android -ccc-install-dir %t/bin \ |
30 | 30 | // RUN: -stdlib++-isystem /tmp/foo -stdlib++-isystem /tmp/bar -stdlib=libc++ \
|
31 | 31 | // RUN: -fsyntax-only %s -### 2>&1 | FileCheck -check-prefix=INCPATH %s
|
32 | 32 | // RUN: %clang -target x86_64-apple-darwin -ccc-install-dir %t/bin \
|
|
35 | 35 | // INCPATH: "-internal-isystem" "/tmp/foo" "-internal-isystem" "/tmp/bar"
|
36 | 36 |
|
37 | 37 | // We shouldn't pass the -stdlib++-isystem to cc1.
|
38 |
| -// RUN: %clang -target aarch64-linux-gnu -ccc-install-dir %t/bin \ |
| 38 | +// RUN: %clang -target aarch64-linux-android -ccc-install-dir %t/bin \ |
39 | 39 | // RUN: -stdlib++-isystem /tmp -stdlib=libc++ -fsyntax-only %s -### 2>&1 | \
|
40 | 40 | // RUN: FileCheck -check-prefix=NOCC1 %s
|
41 | 41 | // RUN: %clang -target x86_64-apple-darwin -ccc-install-dir %t/bin \
|
|
44 | 44 | // NOCC1-NOT: "-stdlib++-isystem" "/tmp"
|
45 | 45 |
|
46 | 46 | // It should respect -nostdinc++.
|
47 |
| -// RUN: %clang -target aarch64-linux-gnu -ccc-install-dir %t/bin \ |
| 47 | +// RUN: %clang -target aarch64-linux-android -ccc-install-dir %t/bin \ |
48 | 48 | // RUN: -stdlib++-isystem /tmp/foo -stdlib++-isystem /tmp/bar -nostdinc++ \
|
49 | 49 | // RUN: -fsyntax-only %s -### 2>&1 | FileCheck -check-prefix=NOSTDINCXX %s
|
50 | 50 | // RUN: %clang -target x86_64-apple-darwin -ccc-install-dir %t/bin \
|
|
0 commit comments