Skip to content
  1. Feb 05, 2019
    • Dan Liew's avatar
      Previously if the user configured their build but then changed · de5220ed
      Dan Liew authored
      LLVM_ENABLED_PROJECT and reconfigured it had no effect on what
      projects were actually built. This was very confusing behaviour. The
      reason for this is that the value of the `LLVM_TOOL_<PROJECT>_BUILD`
      variables are already set.
      
      The problem here is that we have two sources of truth:
      
      * The projects listed in LLVM_ENABLE_PROJECTS.
      * The projects enabled/disabled with LLVM_TOOL_<PROJECT>_BUILD.
      
      At configure time we have no real way of knowing which source of truth
      the user wants so we apply the following heuristic:
      
      If the user ever sets `LLVM_ENABLE_PROJECTS` in the CMakeCache then that
      is used as the single source of truth and we force the
      `LLVM_TOOL_<PROJECT>_BUILD` CMake cache variables to have the
      appropriate values that match the contents of the
      `LLVM_ENABLE_PROJECTS`. If the user never sets `LLVM_ENABLE_PROJECTS`
      then they can continue to use and set the `LLVM_TOOL_<PROJECT>_BUILD`
      variables as the "source of truth".
      
      The problem with this approach is that if the user ever tries to use
      both `LLVM_ENABLE_PROJECTS` and `LLVM_TOOL_<PROJECT>_BUILD` for the same
      build directory then any user set value for `LLVM_TOOL_<PROJECT>_BUILD`
      variables will get overwriten, likely without the user noticing.
      
      Hopefully the above shouldn't matter in practice because the
      LLVM_TOOL_<PROJECT>_BUILD variables are not documented, but
      LLVM_ENABLE_PROJECTS is.
      
      We should probably deprecate the `LLVM_TOOL_<PROJECT>_BUILD`
      variables at some point by turning them into to regular CMake
      variables that don't live in the CMake cache.
      
      Differential Revision: https://reviews.llvm.org/D57535
      
      llvm-svn: 353148
      de5220ed
  2. Feb 02, 2019
  3. Feb 01, 2019
  4. Jan 31, 2019
    • Petr Hosek's avatar
      Revert "[CMake] Unify scripts for generating VCS headers" · 12062e06
      Petr Hosek authored
      This reverts commits r352729 and r352731: this broke Sanitizer Windows bots
      
      llvm-svn: 352733
      12062e06
    • Petr Hosek's avatar
      [CMake] Unify scripts for generating VCS headers · 0e712a76
      Petr Hosek authored
      Previously, there were two different scripts for generating VCS headers:
      one used by LLVM and one used by Clang. They were both similar, but
      different. They were both broken in their own ways, for example the one
      used by Clang didn't properly handle monorepo resulting in an incorrect
      version information reported by Clang.
      
      This change unifies two the scripts by introducing a new script that's
      used from both LLVM and Clang, ensures that the new script supports both
      monorepo and standalone SVN and Git setups, and removes the old scripts.
      
      Differential Revision: https://reviews.llvm.org/D57063
      
      llvm-svn: 352729
      0e712a76
  5. Jan 29, 2019
    • Hans Wennborg's avatar
      Revert r351833 and r352250. · 81675c8f
      Hans Wennborg authored
      They were breaking the Windows build when using MSBuild, see the
      discussion on D56781.
      
      r351833: "Use response file when generating LLVM-C.dll"
      
      > Use response file when generating LLVM-C.dll
      >
      > As discovered in D56774 the command line gets to long, so use a response file to give the script the libs. This change has been tested and is confirmed working for me.
      >
      > Commited on behalf of Jakob Bornecrantz
      >
      > Differential Revision: https://reviews.llvm.org/D56781
      
      r352250: "Build LLVM-C.dll by default on windows and enable in release package"
      
      >  Build LLVM-C.dll by default on windows and enable in release package
      >
      >  With the fixes to the building of LLVM-C.dll in D56781 this should now
      >  be safe to land. This will greatly simplify dealing with LLVM for people
      >  that just want to use the C API on windows. This is a follow up from
      >  D35077.
      >
      >  Patch by Jakob Bornecrantz!
      >
      >  Differential revision: https://reviews.llvm.org/D56774
      
      llvm-svn: 352492
      81675c8f
  6. Jan 25, 2019
  7. Jan 16, 2019
  8. Dec 20, 2018
  9. Dec 19, 2018
  10. Dec 18, 2018
    • Alexandre Ganea's avatar
      [CMake] Default options for faster executables on MSVC · b5053199
      Alexandre Ganea authored
      - Disable incremental linking by default. /INCREMENTAL adds extra thunks in the EXE, which makes execution slower.
      - Set /MT (static CRT lib) by default instead of CMake's default /MD (dll CRT lib). The previous default /MD makes all DLL functions to be thunked, thus making execution slower (memcmp, memset, etc.)
      - Adds LLVM_ENABLE_INCREMENTAL_LINK which is set to OFF by default.
      
      Differential revision: https://reviews.llvm.org/D55056
      
      llvm-svn: 349517
      b5053199
  11. Nov 21, 2018
    • Eric Fiselier's avatar
      [LLVM] Allow modulemap installation · 1091bece
      Eric Fiselier authored
      Summary:
      Currently we can't install the modulemaps provided by LLVM, since they are not structured to support headers generated as part of the build (ex. `llvm/IR/Attributes.gen`).
      This patch restructures the module maps in order to support installation.
      
      Modules containing generated headers are defined in the new `module.extern.modulemap` file, and are referenced from the main `module.modulemap` using `extern module`. There are two versions of the `module.extern.modulemap` file; one used when building and another, `module.install.modulemap`, which is re-named during installation.
      
      Users can opt-into module map installation using `-DLLVM_INSTALL_MODULEMAPS=ON`.  The default value is `OFF` due to llvm.org/PR31905.
      
      Reviewers: rsmith, mehdi_amini, bruno, EricWF
      
      Reviewed By: EricWF
      
      Subscribers: tschuett, chapuni, mgorny, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D53510
      
      llvm-svn: 347420
      1091bece
  12. Nov 16, 2018
  13. Nov 08, 2018
    • Nathan Lanza's avatar
      Revert "Reorder FindPythonInterp so that config-ix can use PYTHON_EXECUTABLE" · 86923b02
      Nathan Lanza authored
      This reverts commit rL346367 due to test error in compiler-rt.
      
      llvm-svn: 346383
      86923b02
    • Shoaib Meenai's avatar
      [cmake] Set CMP0075 to NEW · 7681abde
      Shoaib Meenai authored
      Make the check_include_file* macros honor CMAKE_REQUIRED_LIBRARIES. This
      shouldn't cause any of the configuration checks to give different
      results (and I did clean configures before and after this change and
      confirmed that the resulting CMake caches were identical, though of
      course that's just one machine). This suppresses a warning when building
      with CMake 3.12 or later.
      
      This doesn't suppress the warning in clang, because clang does its own
      cmake_minimum_required call even when being built in-tree, and that
      resets all policy settings. I'll address that separately.
      
      Differential Revision: https://reviews.llvm.org/D54236
      
      llvm-svn: 346377
      7681abde
    • Nathan Lanza's avatar
      Reorder FindPythonInterp so that config-ix can use PYTHON_EXECUTABLE · 9a9372fd
      Nathan Lanza authored
      Summary:
      Code in config-ix tries to call `PYTHON_EXECUTABLE` to search for some
      python modules but that variable isn't set until the moved chunk of
      code that finds Python is called.
      
      Reorder it so CMake can use PYTHON_EXECUTABLE
      
      Subscribers: mgorny, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D52763
      
      llvm-svn: 346367
      9a9372fd
  14. Nov 07, 2018
  15. Oct 16, 2018
  16. Oct 15, 2018
    • Chris Bieneman's avatar
      [CMake] Use LLVM_ENABLE_IDE instead of CMAKE_CONFIGURATION_TYPES · db49209c
      Chris Bieneman authored
      There are several places where we use CMAKE_CONFIGURATION_TYPES to determine if we are using an IDE generator and in turn decide not to generate some of the convenience targets (like all the install-* and check-llvm-* targets). This decision is made because IDEs don't always deal well with the thousands of targets LLVM can generate.
      
      This approach does not work for Visual Studio 15's new CMake integration. Because VS15 uses a Ninja generator, it isn't a multi-configuration build, and generating all these extra targets mucks up the UI and adds little value.
      
      With this change we still don't generate these targets by default for Visual Studio and Xcode generators, and LLVM_ENABLE_IDE becomes a switch that can be enabled on the VS15 CMake builds, to improve the IDE experience.
      
      This is a re-land of r340435, with a few minor fix-ups. The issues causing the revert were addressed in r344218, r344219, and r344553.
      
      llvm-svn: 344555
      db49209c
  17. Oct 04, 2018
  18. Sep 21, 2018
  19. Sep 07, 2018
  20. Sep 04, 2018
  21. Aug 30, 2018
  22. Aug 29, 2018
  23. Aug 28, 2018
    • Kirill Bobyrev's avatar
      [benchmark] Stop building benchmarks by default · a294dfa8
      Kirill Bobyrev authored
      Although the benchmark regex-related build issue seems to be
      fixed, it appears that benchmark library triggers some stage 2 clang-cl
      bugs:
      
      http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/13495/steps/build%20stage%202/logs/stdio
      
      The only sensible option now is to prevent benchmark library from
      building in the default configuration.
      
      llvm-svn: 340836
      a294dfa8
    • Kirill Bobyrev's avatar
      [benchmark] Fix buildbots failing to identify regex support · 3e331e0d
      Kirill Bobyrev authored
      This is cleanup after newly introduced google/benchmark library
      (rL340809). Many buildbots fail to identify regex engine support, so
      this should presumably fix the issue.
      
      llvm-svn: 340827
      3e331e0d
    • Kirill Bobyrev's avatar
      Pull google/benchmark library to the LLVM tree · 0addd170
      Kirill Bobyrev authored
      This patch pulls google/benchmark v1.4.1 into the LLVM tree so that any
      project could use it for benchmark generation. A dummy benchmark is
      added to `llvm/benchmarks/DummyYAML.cpp` to validate the correctness of
      the build process.
      
      The current version does not utilize LLVM LNT and LLVM CMake
      infrastructure, but that might be sufficient for most users. Two
      introduced CMake variables:
      
      * `LLVM_INCLUDE_BENCHMARKS` (`ON` by default) generates benchmark
        targets
      * `LLVM_BUILD_BENCHMARKS` (`OFF` by default) adds generated
        benchmark targets to the list of default LLVM targets (i.e. if `ON`
        benchmarks will be built upon standard build invocation, e.g. `ninja` or
        `make` with no specific targets)
      
      List of modifications:
      
      * `BENCHMARK_ENABLE_TESTING` is disabled
      * `BENCHMARK_ENABLE_EXCEPTIONS` is disabled
      * `BENCHMARK_ENABLE_INSTALL` is disabled
      * `BENCHMARK_ENABLE_GTEST_TESTS` is disabled
      * `BENCHMARK_DOWNLOAD_DEPENDENCIES` is disabled
      
      Original discussion can be found here:
      http://lists.llvm.org/pipermail/llvm-dev/2018-August/125023.html
      
      Reviewed by: dberris, lebedev.ri
      
      Subscribers: ilya-biryukov, ioeric, EricWF, lebedev.ri, srhines,
      dschuff, mgorny, krytarowski, fedor.sergeev, mgrang, jfb, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D50894
      
      llvm-svn: 340809
      0addd170
  24. Aug 22, 2018
    • Chris Bieneman's avatar
      [CMake] Remove unneeded and outdated policy · a2133f1a
      Chris Bieneman authored
      This was needed way back because we didn't properly handle that the SOURCES property of a target could have things that weren't source files to compile. Almost 2 years ago Takumi fixed that, and now CMake is throwing warnings that we should get off the old behavior.
      
      llvm-svn: 340436
      a2133f1a
    • Chris Bieneman's avatar
      [CMake] Use LLVM_ENABLE_IDE instead of CMAKE_CONFIGURATION_TYPES · dc622702
      Chris Bieneman authored
      There are several places where we use CMAKE_CONFIGURATION_TYPES to determine if we are using an IDE generator and in turn decide not to generate some of the convenience targets (like all the install-* and check-llvm-* targets). This decision is made because IDEs don't always deal well with the thousands of targets LLVM can generate.
      
      This approach does not work for Visual Studio 15's new CMake integration. Because VS15 uses a Ninja generator, it isn't a multi-configuration build, and generating all these extra targets mucks up the UI and adds little value.
      
      With this change we still don't generate these targets by default for Visual Studio and Xcode generators, and LLVM_ENABLE_IDE becomes a switch that can be enabled on the VS15 CMake builds, to improve the IDE experience.
      
      llvm-svn: 340435
      dc622702
  25. Aug 20, 2018
    • Reid Kleckner's avatar
      Add cmake option to disable minidumps, default it to off · 53131938
      Reid Kleckner authored
      Since crash dumping landed in r268519, May 2016, I have not once seen
      anyone use an uploaded minidump to debug a compiler crash. Therefore,
      I'm turning this off by default. The dumps clutter up user and buildbot
      temp directories. Each file is only about 56KB, but it adds up.
      
      In the context of clang, the extra line about the minidump confuses
      users, when what we really want from them is the pre-processed source
      code.
      
      llvm-svn: 340185
      53131938
  26. Aug 14, 2018
  27. Aug 09, 2018
Loading