brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · bd5b0af Raw
29 lines · cpp
1// UNSUPPORTED: system-windows2 3// This file tests that the GCC installation directory detection takes4// the libstdc++ includes into account.  In each directory5// Inputs/gcc_toolchain_libstdcxx/gccX, the installation directory for6// gcc X should be picked in the future since it is the directory with7// the largest version number which also contains the libstdc++8// include directory.9 10// RUN: %clang --target=x86_64-linux-gnu --gcc-toolchain=%S/Inputs/gcc_toolchain_libstdcxx/gcc10/usr -v 2>&1 | FileCheck %s --check-prefix=GCC1011// GCC10: clang: warning: future releases of the clang compiler will prefer GCC installations containing libstdc++ include directories; '[[PREFIX:.*gcc_toolchain_libstdcxx/gcc10/usr/lib/gcc/x86_64-linux-gnu]]/10' would be chosen over '[[PREFIX]]/12' [-Wgcc-install-dir-libstdcxx]12// GCC10: Found candidate GCC installation: [[PREFIX]]/1013// GCC10: Found candidate GCC installation: [[PREFIX]]/1114// GCC10: Found candidate GCC installation: [[PREFIX]]/1215// GCC10: Selected GCC installation: [[PREFIX]]/1216 17// RUN: %clang --target=x86_64-linux-gnu --gcc-toolchain=%S/Inputs/gcc_toolchain_libstdcxx/gcc11/usr -v 2>&1 | FileCheck %s --check-prefix=ONLY_GCC1118// ONLY_GCC11: clang: warning: future releases of the clang compiler will prefer GCC installations containing libstdc++ include directories; '[[PREFIX:.*gcc_toolchain_libstdcxx/gcc11/usr/lib/gcc/x86_64-linux-gnu]]/11' would be chosen over '[[PREFIX]]/12' [-Wgcc-install-dir-libstdcxx]19// ONLY_GCC11: Found candidate GCC installation: [[PREFIX]]/1020// ONLY_GCC11: Found candidate GCC installation: [[PREFIX]]/1121// ONLY_GCC11: Found candidate GCC installation: [[PREFIX]]/1222// ONLY_GCC11: Selected GCC installation: [[PREFIX]]/1223 24// RUN: %clang --target=x86_64-linux-gnu --gcc-toolchain=%S/Inputs/gcc_toolchain_libstdcxx/gcc12/usr -v 2>&1 | FileCheck %s --check-prefix=GCC1225// GCC12: Found candidate GCC installation: [[PREFIX:.*gcc_toolchain_libstdcxx/gcc12/usr/lib/gcc/x86_64-linux-gnu]]/1026// GCC12: Found candidate GCC installation: [[PREFIX]]/1127// GCC12: Found candidate GCC installation: [[PREFIX]]/1228// GCC12: Selected GCC installation: [[PREFIX]]/1229