[all-commits] [llvm/llvm-project] b53245: [MLIR] Fix Standalone dialect test to work in out-...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Wed Jun 2 10:25:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b532455ac7038bfb59b858a1bbcb6d2941f5dbcc
      https://github.com/llvm/llvm-project/commit/b532455ac7038bfb59b858a1bbcb6d2941f5dbcc
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2021-06-02 (Wed, 02 Jun 2021)

  Changed paths:
    M mlir/test/CMakeLists.txt
    M mlir/test/Examples/standalone/lit.local.cfg
    M mlir/test/Examples/standalone/test.toy
    M mlir/test/lit.site.cfg.py.in

  Log Message:
  -----------
  [MLIR] Fix Standalone dialect test to work in out-of-tree builds

When LLVM and MLIR are built as subprojects (via add_subdirectory),
the CMake configuration that indicates where the MLIR libraries are is
not necessarily in the same cmake/ directory as LLVM's configuration.
This patch removes that assumption about where MLIRConfig.cmake is
located.

(As an additional none, the %llvm_lib_dir substitution was never
defined, and so find_package(MLIR) in the build was succeeding for
other reasons.)

Reviewed By: stephenneuendorffer

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




More information about the All-commits mailing list