forked from OSchip/llvm-project
28 lines
1.5 KiB
C
28 lines
1.5 KiB
C
// 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
|
|
|
|
// RUN: %clang -rtlib=compiler-rt -print-file-name=libclang_rt.builtins.a 2>&1 \
|
|
// RUN: --target=x86_64-linux-gnu \
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir \
|
|
// RUN: | FileCheck --check-prefix=CHECK-FILE-NAME-X8664 %s
|
|
// CHECK-FILE-NAME-X8664: x86_64-linux-gnu{{/|\\}}lib{{/|\\}}libclang_rt.builtins.a
|