[PATCH] [Driver] Do not lose already detected set of toolchain's multilibs while iterating over different library path suffixes and different library versions.

Simon Atanasyan simon at atanasyan.com
Thu May 8 15:32:31 PDT 2014


Hi jroelofs, a.sidorin, rafael,

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 no satisfy command line flags or do not contain necessary libraries and object files at all we might lose found multilibs.
    
The patch updates variables hold detected multilibs if we really found a new multilib matches command line flags.

http://reviews.llvm.org/D3684

Files:
  lib/Driver/ToolChains.cpp
  lib/Driver/ToolChains.h
  test/Driver/Inputs/ubuntu_14.04_multiarch_tree/lib/x86_64-linux-gnu/.keep
  test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/include/c++/4.8/backward/.keep
  test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/include/x86_64-linux-gnu/c++/4.8/32/.keep
  test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/lib/gcc/x86_64-linux-gnu/4.8/32/crtbegin.o
  test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o
  test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/lib/gcc/x86_64-linux-gnu/4.9/.keep
  test/Driver/linux-header-search.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3684.9233.patch
Type: text/x-patch
Size: 7336 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140508/d3db7411/attachment.bin>


More information about the cfe-commits mailing list