Skip to content
  1. Jul 31, 2013
    • NAKAMURA Takumi's avatar
    • Chandler Carruth's avatar
      Find a better compromise with the default library search paths used by · 7f8042c8
      Chandler Carruth authored
      Clang when linking and using a GCC installation from a GCC
      cross-compiler.
      
      This was desired already by two special case platforms (Android and
      Mips), and turns out to be generally (if frustratingly) true. I've added
      a substantial comment to the code clarifying the underlying assumptions
      of doing actual cross compiles with Clang (or GCC for that matter!) and
      help avoid further confusion here.
      
      The end result is to realize that fully general form of PR12478 cannot
      be resolved while we support existing cross-compiling GCC toolchains,
      and linking with them (namely, linking against their libgcc and
      libstdc++ installs). GCC installs these target libraries under
      a target-specific prefix but one that may not be available within the
      actual sysroot in use. When linking in this world, GCC works and Clang
      should as well, but caveat emptor: DSOs from this tree must be
      replicated and rpath-fixed to be found at runtime within the sysroot.
      
      I've extended the cross compile test cases to cover these issues by
      pointing them at a sysroot and actually checking the library search
      paths.
      
      llvm-svn: 187466
      7f8042c8
  2. Jun 25, 2013
  3. Jun 23, 2013
  4. Jun 21, 2013
    • Chandler Carruth's avatar
      Update a comment to clarify that searching the target triple bin · d6c62b66
      Chandler Carruth authored
      directory for programs used by the driver is actually the standard
      behavior we want to be compatible with GCC cross compilers -- it isn't
      specific to SUSE or any other distro.
      
      Also start fleshing out testing of the different cross compilation
      patterns, both with a new very bare-bones tree of cross compilers and by
      extending the multilib trees. Currently, we don't correctly model doing
      a cross compile using the non-triple target of a bi-arch GCC install,
      but I'll add support for that (and tests) next.
      
      llvm-svn: 184499
      d6c62b66
Loading