Skip to content
  1. Apr 24, 2013
  2. Apr 22, 2013
  3. Apr 21, 2013
  4. Apr 20, 2013
    • Simon Atanasyan's avatar
      Supports Sourcery CodeBench Mips toolchain directories tree. · 08450bd5
      Simon Atanasyan authored
      Sourcery CodeBench and modern FSF Mips toolchains require a bit more
      complicated algorithm to calculate headers, libraries and sysroot paths
      than implemented by Clang driver now. The main problem is that all these
      paths depend on a set of command line arguments additionally to a target
      triple value. For example, let $TC is a toolchain installation directory.
      If we compile big-endian 32-bit mips code, crtbegin.o is in the
      $TC/lib/gcc/mips-linux-gnu/4.7.2 folder and the toolchain's linker requires
      --sysroot=$TC/mips-linux-gnu/libc argument. If we compile little-endian
      32-bit soft-float mips code, crtbegin.o is in the
      $TC/lib/gcc/mips-linux-gnu/4.7.2/soft-float/el folder and the toolchain's
      linker requires --sysroot=$TC/mips-linux-gnu/libc/soft-float/el argument.
      
      1. Calculate MultiarchSuffix using all necessary command line options and
         use this MultiarchSuffix to detect crtbegin.o location in the
         GCCInstallationDetector::ScanLibDirForGCCTriple() routine.
      2. If a user does not provide --sysroot argument to the driver explicitly,
         calculate new sysroot value based on command line options. Then use this
         calculated sysroot path:
         a. To populate a file search paths list in the Linux::Linux() constructor.
         b. To find Mips toolchain specific include headers directories
            in the Linux::AddClangSystemIncludeArgs() routine.
         c. To provide -–sysroot argument for a linker.
      
      Note:
      - The FSF's tree slightly differs (folder names) and is not supported
        yet.
      - New addExternCSystemIncludeIfExits() routine is a temporary solution.
        I plan to move path existence check to the addExternCSystemInclude()
        routine by a separate commit.
      
      The patch reviewed by Rafael Espindola.
      http://llvm-reviews.chandlerc.com/D644
      
      llvm-svn: 179934
      08450bd5
  5. Apr 17, 2013
  6. Apr 16, 2013
  7. Apr 15, 2013
  8. Apr 14, 2013
  9. Apr 12, 2013
  10. Apr 11, 2013
  11. Apr 10, 2013
  12. Apr 09, 2013
  13. Apr 04, 2013
  14. Apr 03, 2013
  15. Apr 02, 2013
  16. Apr 01, 2013
  17. Mar 30, 2013
  18. Mar 28, 2013
  19. Mar 24, 2013
  20. Mar 23, 2013
    • Bob Wilson's avatar
      Revert svn r176894 and r177658. · a20a1dad
      Bob Wilson authored
      Changing -ccc-install-dir to affect cc1's resource-dir setting broke our
      internal LNT tests. After discussing the situation with Jim, we've decided to
      pursue an alternate approach. We really want the resource-dir to be located
      relative to clang, even when using -ccc-install-dir, but we're going to
      add a fallback setting for the libc++ headers if they don't exist alongside
      the compiler.
      
      llvm-svn: 177815
      a20a1dad
Loading