Skip to content
Snippets Groups Projects
  1. Mar 25, 2014
    • Meador Inge's avatar
      [configure/make] Propagate names of build host tools when making BuildTools · 0d34006a
      Meador Inge authored
      When cross-compiling LLVM itself the configure/make scripts get confused when
      creating the needed build host tools.  For example, building and configuring
      like:
      
        CC_FOR_BUILD='i686-pc-linux-gnu-gcc' CXX_FOR_BUILD='i686-pc-linux-gnu-g++'
        CXX='i686-mingw32-g++' CC='i686-mingw32-gcc' LD='i686-mingw32-ld' /scratch
        /meadori/llvm-trunk/src/trunk/configure --host=i686-mingw32
      
        CC_FOR_BUILD='i686-pc-linux-gnu-gcc' CXX_FOR_BUILD='i686-pc-linux-gnu-g++'
        CXX='i686-mingw32-g++' CC='i686-mingw32-gcc' LD='i686-mingw32-ld' make
      
      causes the following build break:
      
        checking whether the C compiler works... configure: error: cannot run C
        compiled programs.
        If you meant to cross compile, use `--host'.
        See `config.log' for more details.
      
      The 'config.log' shows that i686-mingw32-gcc is being used to create
      executables for the build host.
      
      This patch fixes the problem by propogating the names of the build host
      tools via BUILD_* when configuring/making BuildTools.
      
      Original patch by Ekaterina Sanina.
      
      llvm-svn: 204760
      0d34006a
  2. Feb 09, 2014
    • NAKAMURA Takumi's avatar
      Provide CMake package modules in install tree · 01e3c64f
      NAKAMURA Takumi authored
      Teach the Makefile build system to generate and install CMake modules
      LLVMConfig.cmake and LLVMConfigVersion.cmake so that applications that
      build with CMake can use 'find_package(LLVM)' even when LLVM is not
      built with CMake.  These modules tell such applications about available
      LLVM libraries and their dependencies.
      
      Run llvm-config to generate the list of libraries and use the results of
      llvm-build to generate the library dependencies.  Use sed to perform
      substitutions in the LLVMConfig.cmake.in and LLVMConfigVersion.cmake.in
      sources that our CMake build system uses.
      
      Teach the Makefile build system to generate the LLVMExports.cmake file
      with content similar to that produced by the CMake install(EXPORT)
      command.  Extend llvm-build with an option to generate the library
      dependencies fragment for this file.
      
      Contributed by Brad King.
      
      llvm-svn: 201053
      01e3c64f
  3. Jan 17, 2014
  4. Jan 16, 2014
  5. Dec 16, 2013
    • NAKAMURA Takumi's avatar
      llvm-config: Fixup r197380, tweak for cross compilation. SYSTEM_LIBS should be... · c062b23e
      NAKAMURA Takumi authored
      llvm-config: Fixup r197380, tweak for cross compilation. SYSTEM_LIBS should be --host's in BuildTools/llvm-config.
      
      FIXME: Host's llvm-config is not generated. It's for target's.
      Host tools, aka "BuildTools", in utils, do not require llvm-config to build.
      
      For example with --host=i686-pc-mingw32 --build=linux,
      
        $ BuildTools/Release+Asserts/bin/llvm-config --libs support
        -lLLVMSupport
        -lpthread -lshell32 -lpsapi -limagehlp -lm
      
      llvm-svn: 197382
      c062b23e
  6. Oct 02, 2013
    • Chandler Carruth's avatar
      Remove the very substantial, largely unmaintained legacy PGO · ea564946
      Chandler Carruth authored
      infrastructure.
      
      This was essentially work toward PGO based on a design that had several
      flaws, partially dating from a time when LLVM had a different
      architecture, and with an effort to modernize it abandoned without being
      completed. Since then, it has bitrotted for several years further. The
      result is nearly unusable, and isn't helping any of the modern PGO
      efforts. Instead, it is getting in the way, adding confusion about PGO
      in LLVM and distracting everyone with maintenance on essentially dead
      code. Removing it paves the way for modern efforts around PGO.
      
      Among other effects, this removes the last of the runtime libraries from
      LLVM. Those are being developed in the separate 'compiler-rt' project
      now, with somewhat different licensing specifically more approriate for
      runtimes.
      
      llvm-svn: 191835
      ea564946
  7. Jul 03, 2013
    • Craig Topper's avatar
      Fix regular expression used by 'make update' to only look for 'I' and '?' at... · 1b7cfb70
      Craig Topper authored
      Fix regular expression used by 'make update' to only look for 'I' and '?' at the start of svn info results and to check for spaces after 'I' instead of just after '?'.
      
      Previously it was able to match 'I' anywhere in the filenames of the svn info results instead of just files that where ignored or unknown to svn. This would cause 'make update' to infinitely recurse if a file was modified with I anywhere in its name since svn info would return a Path pointing to the llvm root for those files.
      
      llvm-svn: 185539
      1b7cfb70
  8. Jan 28, 2013
    • Edwin Vane's avatar
      Improved svn repo searching for 'make update' · 12906403
      Edwin Vane authored
      Use a simple recursive bash function to search for svn repos for the 'make
      update' target thus including projects like clang-tools-extra.
      
      Reviewers: bkramer, echristo
      llvm-svn: 173650
      12906403
  9. Jan 02, 2013
  10. Nov 06, 2012
  11. Oct 25, 2012
  12. Oct 10, 2012
  13. Oct 02, 2012
  14. Sep 25, 2012
  15. Aug 23, 2012
  16. Aug 14, 2012
  17. May 09, 2012
    • Bob Wilson's avatar
      Do not install llvm-config-host for cross-builds of clang. rdar://11317847 · 7789aae9
      Bob Wilson authored
      My previous change to install llvm-config-host for cross-builds resulted
      in that file being installed even when the normal llvm-config was not
      installed, e.g., when building the install-clang target.  Daniel suggested
      this alternative, which solves the immediate problem and also avoids the gunk
      in the top-level makefile.
      
      llvm-svn: 156448
      7789aae9
  18. Apr 20, 2012
  19. Jan 17, 2012
  20. Dec 01, 2011
  21. Nov 30, 2011
  22. Nov 29, 2011
  23. Nov 27, 2011
  24. Nov 12, 2011
  25. Nov 11, 2011
  26. Nov 10, 2011
  27. Nov 02, 2011
  28. Oct 19, 2011
  29. Oct 08, 2011
  30. Oct 01, 2011
  31. Sep 20, 2011
  32. Jun 10, 2011
  33. Apr 12, 2011
    • Daniel Dunbar's avatar
      build: Add support for a SHOW_DIAGNOSTICS build variable. · 0625b1f8
      Daniel Dunbar authored
      If enabled, this will attempt to use the CC_LOG_DIAGNOSTICS feature I dropped
      into Clang to print a log of all the diagnostics generated during an individual
      build (from the top-level). Not sure if this will actually be useful, but for
      now it is handy for testing the option.
      
      llvm-svn: 129312
      0625b1f8
  34. Nov 29, 2010
Loading