[all-commits] [llvm/llvm-project] 55e76c: [mlir] Limit Python dependency to Development.Modu...

mikeurbach via All-commits all-commits at lists.llvm.org
Tue Oct 12 08:31:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55e76c70a4f7fd5e13cf6c317a183bc3e6c59a03
      https://github.com/llvm/llvm-project/commit/55e76c70a4f7fd5e13cf6c317a183bc3e6c59a03
  Author: Mike Urbach <mikeurbach at gmail.com>
  Date:   2021-10-12 (Tue, 12 Oct 2021)

  Changed paths:
    M mlir/CMakeLists.txt
    M mlir/cmake/modules/AddMLIRPython.cmake
    M mlir/docs/Bindings/Python.md

  Log Message:
  -----------
  [mlir] Limit Python dependency to Development.Module when possible.

After CMake 3.18, we are able to limit the scope of the search to just
Development.Module. Searching for Development will fail in situations
where the Python libraries are not available. When possible, limit to
just Development.Module. See:
https://pybind11.readthedocs.io/en/stable/compiling.html#findpython-mode

Reviewed By: stellaraccident

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




More information about the All-commits mailing list