]> granicus.if.org Git - clang/commit
Add arch-specific directory to search path
authorPirama Arumuga Nainar <pirama@google.com>
Fri, 3 Mar 2017 23:20:49 +0000 (23:20 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Fri, 3 Mar 2017 23:20:49 +0000 (23:20 +0000)
commitacb633febb6c727d23d4d7d8ac97f312f635acfe
treecd5184e8929fbf60ec3ed67d66d41c9438759f83
parent2cfd901321423a96edd8513afc7c7c2bb0d18b2e
Add arch-specific directory to search path

Summary:

This change adds an arch-specific subdirectory in <ResourceDir>/lib/<OS>
to the linker search path.  This path also gets added as '-rpath' for
native compilation if a runtime is linked in as a shared object.  This
allows arch-specific libraries to be installed alongside clang.

Reviewers: danalbert, cbergstrom, javed.absar

Subscribers: srhines

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296927 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/ToolChain.h
lib/Driver/ToolChain.cpp
lib/Driver/Tools.cpp
test/Driver/Inputs/resource_dir_with_arch_subdir/lib/linux/aarch64/.keep [new file with mode: 0644]
test/Driver/Inputs/resource_dir_with_arch_subdir/lib/linux/arm/.keep [new file with mode: 0644]
test/Driver/Inputs/resource_dir_with_arch_subdir/lib/linux/i386/.keep [new file with mode: 0644]
test/Driver/Inputs/resource_dir_with_arch_subdir/lib/linux/x86_64/.keep [new file with mode: 0644]
test/Driver/arch-specific-libdir-rpath.c [new file with mode: 0644]
test/Driver/arch-specific-libdir.c [new file with mode: 0644]
test/lit.cfg