1 // RUN: %clangxx -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" "{{.*}}/../include/c++/v1" 13 // CHECK-PER-TARGET-RUNTIME: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 14 // CHECK-PER-TARGET-RUNTIME: "--sysroot=[[SYSROOT]]" 15 // CHECK-PER-TARGET-RUNTIME: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}lib{{/|\\\\}}x86_64-linux-gnu{{/|\\\\}}c++" 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 21 // CHECK-CLANGRT-X8664: lib{{/|\\}}x86_64-linux-gnu{{/|\\}}libclang_rt.builtins.a 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: lib{{/|\\}}x86_64-linux-gnu{{/|\\}}libclang_rt.builtins.a 28