Petr Hosek | 887f26d | 2018-06-28 03:11:52 +0000 | [diff] [blame] | 1 | // RUN: %clang -no-canonical-prefixes -x c++ %s -### -o %t.o 2>&1 \ |
| 2 | // RUN: --target=x86_64-linux-gnu \ |
| 3 | // RUN: -stdlib=libc++ \ |
| 4 | // RUN: -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir \ |
| 5 | // RUN: -ccc-install-dir %S/Inputs/basic_linux_libcxx_tree/usr/bin \ |
| 6 | // RUN: --gcc-toolchain="" \ |
| 7 | // RUN: --sysroot=%S/Inputs/basic_linux_libcxx_tree \ |
| 8 | // RUN: | FileCheck --check-prefix=CHECK-PER-TARGET-RUNTIME %s |
| 9 | // CHECK-PER-TARGET-RUNTIME: "{{[^"]*}}clang{{[^"]*}}" "-cc1" |
| 10 | // CHECK-PER-TARGET-RUNTIME: "-resource-dir" "[[RESDIR:[^"]*]]" |
| 11 | // CHECK-PER-TARGET-RUNTIME: "-isysroot" "[[SYSROOT:[^"]+]]" |
| 12 | // CHECK-PER-TARGET-RUNTIME: "-internal-isystem" "[[RESDIR]]/include/c++/v1" |
| 13 | // CHECK-PER-TARGET-RUNTIME: "-internal-isystem" "[[SYSROOT]]/usr/local/include" |
| 14 | // CHECK-PER-TARGET-RUNTIME: "--sysroot=[[SYSROOT]]" |
Petr Hosek | 1a330a1 | 2018-06-28 03:54:08 +0000 | [diff] [blame] | 15 | // CHECK-PER-TARGET-RUNTIME: "-L[[RESDIR]]{{/|\\\\}}x86_64-linux-gnu{{/|\\\\}}lib" |
Petr Hosek | 887f26d | 2018-06-28 03:11:52 +0000 | [diff] [blame] | 16 | |
| 17 | // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name 2>&1 \ |
| 18 | // RUN: --target=x86_64-linux-gnu \ |
| 19 | // RUN: -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir \ |
| 20 | // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-X8664 %s |
Filipe Cabecinhas | 3c7b58d | 2018-06-28 14:16:13 +0000 | [diff] [blame] | 21 | // CHECK-CLANGRT-X8664: x86_64-linux-gnu{{/|\\}}lib{{/|\\}}libclang_rt.builtins.a |
Petr Hosek | 8f2499f | 2018-09-12 03:26:10 +0000 | [diff] [blame] | 22 | |
| 23 | // RUN: %clang -rtlib=compiler-rt -print-file-name=libclang_rt.builtins.a 2>&1 \ |
| 24 | // RUN: --target=x86_64-linux-gnu \ |
| 25 | // RUN: -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir \ |
| 26 | // RUN: | FileCheck --check-prefix=CHECK-FILE-NAME-X8664 %s |
| 27 | // CHECK-FILE-NAME-X8664: x86_64-linux-gnu{{/|\\}}lib{{/|\\}}libclang_rt.builtins.a |