[all-commits] [llvm/llvm-project] 84fe34: [MLIR] Workaround for python detection problems.
stephenneuendorffer via All-commits
all-commits at lists.llvm.org
Thu Jan 27 13:32:57 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 84fe34a0b7fdd7bbf179981d1583693d5d5ec68b
https://github.com/llvm/llvm-project/commit/84fe34a0b7fdd7bbf179981d1583693d5d5ec68b
Author: Stephen Neuendorffer <stephen.neuendorffer at xilinx.com>
Date: 2022-01-27 (Thu, 27 Jan 2022)
Changed paths:
M mlir/cmake/modules/MLIRDetectPythonEnv.cmake
Log Message:
-----------
[MLIR] Workaround for python detection problems.
Although cmake should be platform-independent, we've observed
that some aspects of Python detection don't work on all platforms,
even with recent versions of cmake. This appears to be due to bugs
in the python detection logic, especially when the NumPy component
is required and not located within the python installation.
As a workaround, this patch first searches for "Development" before
searching for "Development.Module", which seems to workaround the
issue.
Differential Revision: https://reviews.llvm.org/D118148
More information about the All-commits
mailing list