clang/test/Driver/Inputs
Petr Hosek 2fe3058f3a [Driver] Check normalized triples for multiarch runtime path
Previously we only used target triple as provided which matches the
GCC behavior, but it also means that all clients have to be consistent
in their spelling of target triples since e.g. x86_64-linux-gnu and
x86_64-unknown-linux-gnu will result in Clang driver looking at two
different paths when searching for runtime libraries.

Unfortunatelly, as it turned out many clients aren't consistent in
their spelling of target triples, e.g. many Linux distributions use
the shorter spelling but config.guess and rustc insist on using the
normalized variant which is causing issues. To avoid having to ship
multiple copies of runtimes for different triple spelling or rely on
symlinks which are not portable, we should also check the normalized
triple when constructing paths for multiarch runtimes.

Differential Revision: https://reviews.llvm.org/D50547

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340471 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-22 22:56:46 +00:00
..
B_opt_tree Extend -Bprefix functionality and make it closer to gcc. If the "prefix" 2012-10-31 12:01:53 +00:00
CUDA/usr/local/cuda [CUDA] Detect installation in PATH 2018-01-31 08:26:51 +00:00
CUDA-macosx/usr/local/cuda [CUDA] Driver changes to support CUDA compilation on MacOS. 2016-11-18 00:41:22 +00:00
CUDA-nolibdevice/usr/local/cuda [CUDA] Detect installation in PATH 2018-01-31 08:26:51 +00:00
CUDA-symlinks [CUDA] Detect installation in PATH 2018-01-31 08:26:51 +00:00
CUDA-windows/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0 [Driver] Driver changes to support CUDA compilation on Windows. 2017-01-05 16:52:29 +00:00
CUDA_80/usr/local/cuda [CUDA] Added support for CUDA-8 2016-09-28 17:47:40 +00:00
CUDA_90/usr/local/cuda [CUDA] Print an error if you try to compile with < sm_30 on CUDA 9. 2017-10-25 21:32:06 +00:00
Windows Vary Windows toolchain selection by -fuse-ld 2017-11-06 21:18:05 +00:00
ami_linux_tree Add a .keep file to prevent svn from skipping over an empty folder. 2018-07-24 06:49:27 +00:00
baremetal_arm/include/c++ Don't defer to the GCC driver for linking arm-baremetal 2017-05-25 15:42:13 +00:00
basic_android_ndk_tree [Driver] Use the per-API level Android library directories. 2018-04-17 20:42:07 +00:00
basic_android_tree [driver][mips] Support MIPS targets in modern Android NDK 2016-07-19 07:09:48 +00:00
basic_cross_linux_tree/usr Update a comment to clarify that searching the target triple bin 2013-06-20 23:37:54 +00:00
basic_freebsd64_tree Reintroduce r148981 with significantly improved regression test. Now it 2012-01-26 01:35:15 +00:00
basic_freebsd_tree Propset the executables for GetProgramPath(). 2014-06-26 14:38:46 +00:00
basic_linux_libcxx_tree/usr Add the test trees that were supposed to be part of r199632. 2014-01-20 09:47:21 +00:00
basic_linux_libcxxv2_tree/usr Extend linux header search to find libc++ headers in c++/vN for any N. 2015-11-09 21:10:54 +00:00
basic_linux_libstdcxx_libcxxv2_tree/usr Extend linux header search to find libc++ headers in c++/vN for any N. 2015-11-09 21:10:54 +00:00
basic_linux_tree Reland r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux) 2017-08-28 20:29:52 +00:00
basic_myriad_tree Add renamed .o files that were omitted by "git llvm push" command 2017-12-19 16:34:13 +00:00
basic_netbsd_tree/usr/lib For NetBSD, use the same settings for PPC64 as for PPC when it comes to 2014-08-13 14:17:32 +00:00
basic_riscv32_tree [RISCV] Add driver for riscv32-unknown-elf baremetal target 2018-07-31 14:21:46 +00:00
cl-libs Make clang-cl accept .lib inputs (PR20065) 2014-06-18 17:21:50 +00:00
config Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config2 Enable configuration files in clang 2018-01-01 13:27:01 +00:00
debian_6_mips64_tree [Driver][Mips] Support mips64-linux-gnuabi64 / mips64el-linux-gnuabi64 target triples. 2014-06-24 19:00:12 +00:00
debian_6_mips_tree Do not use "lib32" directory to create a library/object files 2012-09-14 11:27:24 +00:00
debian_8_sparc64_tree [SPARC] Add multiarch include paths. 2015-06-05 13:44:43 +00:00
debian_8_sparc_multilib_tree [SPARC] Add multiarch include paths. 2015-06-05 13:44:43 +00:00
debian_multiarch_tree [PPC]: Fix bug in getMultiarchTriple. 2015-06-26 18:37:15 +00:00
debian_reduced_mips_tree [Mips] Check all MIPS toolchains to find the one that best meets command 2014-03-04 18:37:28 +00:00
fake_install_tree Use the InstalledDir correctly, and test it correctly as well. =/ Should 2011-10-05 06:38:03 +00:00
fedora_18_tree Revert "Support cross linking to arm on ubuntu." 2013-10-28 23:14:34 +00:00
fedora_21_tree/usr Add driver support for AArch64 Fedora. 2014-05-06 16:58:14 +00:00
freescale_ppc64_tree Add the freescale_ppc64_tree that should have been included in r164177. 2012-09-18 22:53:24 +00:00
freescale_ppc_tree Add C/C++ header locations for the Freescale SDK. 2012-09-18 22:25:07 +00:00
fuse_ld_windows [Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows. 2018-02-27 02:51:30 +00:00
gcc_version_parsing1 Enhance the GCC version parsing and comparison logic to handle some more 2011-11-05 23:24:30 +00:00
gcc_version_parsing2 Enhance the GCC version parsing and comparison logic to handle some more 2011-11-05 23:24:30 +00:00
gcc_version_parsing3 Enhance the GCC version parsing and comparison logic to handle some more 2011-11-05 23:24:30 +00:00
gcc_version_parsing4 Enhance the GCC version parsing and comparison logic to handle some more 2011-11-05 23:24:30 +00:00
gcc_version_parsing5 [Driver] Adapt Linux::GCCVersion::Parse to match GCC 5 installations 2016-06-17 16:47:14 +00:00
gentoo_linux_gcc_4.6.2_tree/usr Fix PR20773 which I introduced with a silly edit mistake in r216531. 2014-08-27 18:21:27 +00:00
gentoo_linux_gcc_4.6.4_tree/usr Fix PR20773 which I introduced with a silly edit mistake in r216531. 2014-08-27 18:21:27 +00:00
gentoo_linux_gcc_4.9.3_tree/usr Teach header search about GCC 4.9 header search paths in Gentoo, they 2016-05-08 07:59:56 +00:00
gentoo_linux_gcc_4.9.x_tree [Driver] Update GCC libraries detection logic for Gentoo. 2018-04-07 19:59:58 +00:00
gentoo_linux_gcc_multi_version_tree [Driver] Fix finding multilib gcc install on Gentoo (with gcc-config) 2016-12-12 15:07:43 +00:00
hexagon_tree/Tools Add a dummy file in each subdirectory in test/Driver/Inputs/hexagon_tree 2016-10-17 18:04:05 +00:00
hip_dev_lib [HIP] Support flush denormals bitcode 2018-06-27 18:58:55 +00:00
hip_multiple_inputs Add HIP toolchain 2018-05-30 00:53:50 +00:00
libomptarget [OpenMP] Add flag for linking runtime bitcode library 2018-03-13 23:19:52 +00:00
mingw_arch_tree/usr Add extensive tests for the mingw toolchain and remove trailing slash from Arch. 2015-07-24 08:50:15 +00:00
mingw_clang_tree/mingw32 Driver: Fix include directories when not using libgcc under mingw 2015-08-13 15:41:04 +00:00
mingw_mingw_builds_tree/mingw32 Add extensive tests for the mingw toolchain and remove trailing slash from Arch. 2015-07-24 08:50:15 +00:00
mingw_mingw_org_tree/mingw Add extensive tests for the mingw toolchain and remove trailing slash from Arch. 2015-07-24 08:50:15 +00:00
mingw_msys2_tree/msys64/mingw32 Add extensive tests for the mingw toolchain and remove trailing slash from Arch. 2015-07-24 08:50:15 +00:00
mingw_opensuse_tree/usr Add extensive tests for the mingw toolchain and remove trailing slash from Arch. 2015-07-24 08:50:15 +00:00
mingw_ubuntu_posix_tree/usr [GCC] Match a GCC version with a patch suffix without a third version component 2018-04-24 08:50:11 +00:00
mingw_ubuntu_tree/usr [test] Fix a typo in a test directory name. NFC. 2018-04-24 08:49:57 +00:00
mips_cs_tree [driver][mips] Revert support for CodeSourcery MIPS toolchain 2016-05-28 09:44:04 +00:00
mips_fsf_tree [Driver] Support -muclibc / -mglibc command line options for a couple 2014-08-13 14:34:14 +00:00
mips_img_tree [mips][mips64r6] Add support for mips-img-linux-gnu GCC toolchains 2014-07-10 14:40:57 +00:00
mips_img_v2_tree [driver][mips] Follow-up to r270373. Add missed folder. 2016-05-22 22:06:19 +00:00
mips_mti_linux Re-recommit: Add support for the new mips-mti-linux toolchain. 2015-11-12 15:26:54 +00:00
mips_mti_tree [driver][mips] Support new versions of MIPS CodeScape toolchains 2016-05-22 18:18:07 +00:00
module Driver: In crashdumps with -fmodule, dump the module dependencies 2014-06-20 22:59:50 +00:00
montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0 supply a simple-minded testcase for r156813, to check whether the embedded montavista gcc toolchain is recognized 2012-05-30 09:56:26 +00:00
multiarch_freebsd64_tree Reintroduce r148981 with significantly improved regression test. Now it 2012-01-26 01:35:15 +00:00
multilib_32bit_linux_tree Update a comment to clarify that searching the target triple bin 2013-06-20 23:37:54 +00:00
multilib_64bit_linux_tree [x32] Adding X32 target support to driver, including TargetInfo,DescriptionString, flags, paths lookup, etc. Cover changes with new tests. The author of the patch is Pavel Chupin (@pavel.v.chupin). 2014-07-10 15:27:19 +00:00
multilib_arm_linux_tree/usr/include/arm-linux-gnueabi Driver: add multilibs for ARM EB 2015-12-11 06:20:59 +00:00
multilib_armeb_linux_tree/usr/include/armeb-linux-gnueabi Driver: add multilibs for ARM EB 2015-12-11 06:20:59 +00:00
multilib_armebhf_linux_tree/usr/include/armeb-linux-gnueabihf Driver: add multilibs for ARM EB 2015-12-11 06:20:59 +00:00
multilib_armhf_linux_tree/usr/include/arm-linux-gnueabihf Driver: add multilibs for ARM EB 2015-12-11 06:20:59 +00:00
multilib_riscv_linux_sdk Revert rC322769: [RISCV] Propagate -mabi and -march values to GNU assembler. 2018-01-18 06:13:25 +00:00
openembedded_aarch64_linux_tree/usr [OpenEmbedded] Fix lib paths for OpenEmbedded targets 2018-07-30 19:44:13 +00:00
openembedded_arm_linux_tree/usr [OpenEmbedded] Fix lib paths for OpenEmbedded targets 2018-07-30 19:44:13 +00:00
opensuse_42.2_aarch64_tree/usr/lib64 [Driver] Add openSuse AArch64 Triple 2017-01-10 21:13:08 +00:00
opensuse_tumbleweed_armv6hl_tree/usr/lib Add support for openSUSE ARM Triples 2017-04-21 12:26:43 +00:00
opensuse_tumbleweed_armv7hl_tree/usr/lib Add support for openSUSE ARM Triples 2017-04-21 12:26:43 +00:00
prefixed_tools_tree Revert part of r148839 and keep DefaultTargetTriple in the form adjusted 2012-02-22 19:15:16 +00:00
resource_dir [Darwin Driver] Fix Simulator builtins and test cases 2018-08-15 22:50:06 +00:00
resource_dir_with_arch_subdir/lib/linux Add arch-specific directory to search path 2017-03-03 23:20:49 +00:00
resource_dir_with_per_target_subdir [Driver] Check normalized triples for multiarch runtime path 2018-08-22 22:56:46 +00:00
scei-ps4_tree/target Bring back r250262: PS4 toolchain 2015-10-14 12:25:43 +00:00
solaris_sparc_tree/usr [Solaris] gcc toolchain handling revamp 2018-01-23 12:23:52 +00:00
solaris_x86_tree/usr [Solaris] gcc toolchain handling revamp 2018-01-23 12:23:52 +00:00
suse_10.3_ppc64_tree add tree test for suse on ppc64 (r146142) 2011-12-08 20:36:19 +00:00
ubuntu_11.04_multiarch_tree Fix an issue that Duncan discovered on a specific (no longer current) 2011-11-09 03:46:20 +00:00
ubuntu_12.04_LTS_multiarch_tree Add two more .keep files to avoid the missing of empty folders in git repository. 2012-07-31 10:52:55 +00:00
ubuntu_13.04_multiarch_tree Fix gcc search for cross-compiler on Ubuntu 13.04. 2013-07-26 00:53:40 +00:00
ubuntu_14.04_multiarch_tree [x32] Adding X32 target support to driver, including TargetInfo,DescriptionString, flags, paths lookup, etc. Cover changes with new tests. The author of the patch is Pavel Chupin (@pavel.v.chupin). 2014-07-10 15:27:19 +00:00
ubuntu_14.04_multiarch_tree2 Significantly fix Clang's header search for Ubuntu (and possibly other 2014-08-27 08:41:41 +00:00
x86-64_ubuntu_13.10 Teach the driver to not try to use 'lib32' multilib spellings on ARM 2013-10-29 10:27:30 +00:00
cc1-response.txt Fix PR17239 by changing the semantics of the RemainingArgsClass Option kind 2014-08-22 19:29:30 +00:00
config-1.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-2.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-2a.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-3.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-4.cfg [Driver] Don't warn about unused inputs in config files 2018-05-04 06:05:58 +00:00
config-5.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-6.cfg Enable configuration files in clang 2018-01-01 13:27:01 +00:00
empty.cfg [ConfigFiles] Update argument strings when merging argrument lists 2018-04-26 06:28:47 +00:00
file.ll clang-cl: /fallback only applies to C or C++ files 2014-04-25 16:44:17 +00:00
file.prof Add -fprofile-sample-use to Clang's driver. 2013-11-13 12:22:39 +00:00
gen-response.c Teach Clang how to use response files when calling other tools 2014-09-15 17:45:39 +00:00
header0.h clang-cl: Add more tests for the interaction of /FI and /Yc /Yu. 2016-03-23 18:17:02 +00:00
header1.h clang-cl: Add a test for the interaction of /Yc and /showIncludes. 2016-03-12 19:55:59 +00:00
header2.h clang-cl: Add a test for the interaction of /Yc and /showIncludes. 2016-03-12 19:55:59 +00:00
header3.h clang-cl: Add a test for the interaction of /Yc and /showIncludes. 2016-03-12 19:55:59 +00:00
header4.h clang-cl: Add more tests for the interaction of /FI and /Yc /Yu. 2016-03-23 18:17:02 +00:00
pchfile.cpp clang-cl: Implement initial limited support for precompiled headers. 2016-03-01 23:16:44 +00:00
pchfile.h clang-cl: Implement initial limited support for precompiled headers. 2016-03-01 23:16:44 +00:00
rewrite-1.map Driver: avoid failing in the backend 2016-09-26 04:48:22 +00:00
rewrite-2.map Driver: avoid failing in the backend 2016-09-26 04:48:22 +00:00
rewrite.map Driver: avoid failing in the backend 2016-09-26 04:48:22 +00:00
wildcard1.c Add a test for wildcard expansion on Windows 2014-07-16 00:55:31 +00:00
wildcard2.c Add a test for wildcard expansion on Windows 2014-07-16 00:55:31 +00:00