[all-commits] [llvm/llvm-project] 2aa1af: [MLIR] [CMake] Support building MLIR standalone

Michał Górny via All-commits all-commits at lists.llvm.org
Tue Feb 2 11:11:41 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2aa1af9b1da0d832270d9b8afcba19a4aba2c366
      https://github.com/llvm/llvm-project/commit/2aa1af9b1da0d832270d9b8afcba19a4aba2c366
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M mlir/CMakeLists.txt
    M mlir/cmake/modules/AddMLIR.cmake
    M mlir/test/CMakeLists.txt
    M mlir/test/lit.cfg.py

  Log Message:
  -----------
  [MLIR] [CMake] Support building MLIR standalone

Add the necessary bits to CMakeLists to make it possible to configure
MLIR against installed LLVM, and build it with minimal need for LLVM
source tree.  The latter is only necessary to run unittests, and if it
is missing then unittests are skipped with a warning.

This change includes the necessary changes to tests, in particular
adding some missing substitutions and defining missing variables
for lit.site.cfg.py substitution.

Reviewed By: stephenneuendorffer

Differential Revision: https://reviews.llvm.org/D85464

Co-authored-by: Isuru Fernando <isuruf at gmail.com>




More information about the All-commits mailing list