| // RUN: %clang -no-canonical-prefixes -x c++ %s -### -o %t.o 2>&1 \ |
| // RUN: --target=x86_64-linux-gnu \ |
| // RUN: -stdlib=libc++ \ |
| // RUN: -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir \ |
| // RUN: -ccc-install-dir %S/Inputs/basic_linux_libcxx_tree/usr/bin \ |
| // RUN: --gcc-toolchain="" \ |
| // RUN: --sysroot=%S/Inputs/basic_linux_libcxx_tree \ |
| // RUN: | FileCheck --check-prefix=CHECK-PER-TARGET-RUNTIME %s |
| // CHECK-PER-TARGET-RUNTIME: "{{[^"]*}}clang{{[^"]*}}" "-cc1" |
| // CHECK-PER-TARGET-RUNTIME: "-resource-dir" "[[RESDIR:[^"]*]]" |
| // CHECK-PER-TARGET-RUNTIME: "-isysroot" "[[SYSROOT:[^"]+]]" |
| // CHECK-PER-TARGET-RUNTIME: "-internal-isystem" "[[RESDIR]]/include/c++/v1" |
| // CHECK-PER-TARGET-RUNTIME: "-internal-isystem" "[[SYSROOT]]/usr/local/include" |
| // CHECK-PER-TARGET-RUNTIME: "--sysroot=[[SYSROOT]]" |
| // CHECK-PER-TARGET-RUNTIME: "-L[[RESDIR]]{{/|\\\\}}x86_64-linux-gnu{{/|\\\\}}lib" |
| |
| // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name 2>&1 \ |
| // RUN: --target=x86_64-linux-gnu \ |
| // RUN: -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir \ |
| // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-X8664 %s |
| // CHECK-CLANGRT-X8664: x86_64-linux-gnu{{/|\\}}lib{{/|\\}}libclang_rt.builtins.a |