]> granicus.if.org Git - clang/commit
[Driver] Do not lose already detected set of toolchain's multilibs while
authorSimon Atanasyan <simon@atanasyan.com>
Mon, 12 May 2014 07:37:51 +0000 (07:37 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Mon, 12 May 2014 07:37:51 +0000 (07:37 +0000)
commit4be26d901c274e9ae283a9f7ed1b7a5ebc30121f
treea58438e09cf8ef6ec104bb17f67f189cdb46dacc
parentfac991670112b2dd6a25f9d232551bf661526756
[Driver] Do not lose already detected set of toolchain's multilibs while
iterating over different library path suffixes and different library versions.

To find the most appropriate library for the given command line flags we
iterate over a set of disk paths. Before probe each path the already
detected set of multilibs are cleared. If the set of paths contains
existing paths which do not satisfy command line flags or do not contain
necessary libraries and object files at all we might lose found multilibs.

The patch updates variables which hold detected multilibs if we really find
a new multilib matches command line flags.

The patch reviewed by Jon Roelofs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208523 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h
test/Driver/Inputs/ubuntu_14.04_multiarch_tree/lib/x86_64-linux-gnu/.keep [new file with mode: 0755]
test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/include/c++/4.8/backward/.keep [new file with mode: 0755]
test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/include/x86_64-linux-gnu/c++/4.8/32/.keep [new file with mode: 0755]
test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/lib/gcc/x86_64-linux-gnu/4.8/32/crtbegin.o [new file with mode: 0755]
test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o [new file with mode: 0755]
test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/lib/gcc/x86_64-linux-gnu/4.9/.keep [new file with mode: 0644]
test/Driver/linux-header-search.cpp