The Python bindings now require -DLLVM_BUILD_LLVM_DYLIB=ON to build.
This change is needed to be able to build multiple Python native
extension without having each of them embedding a copy of MLIR, which
would make them incompatible with each other. Instead they should all
link to the same copy of MLIR.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Lgtm. Also see https://reviews.llvm.org/D90824 where I am trying a different approach. It is easy enough to change as we go forward, so let's land this and keep discussing.
mlir/lib/Bindings/Python/CMakeLists.txt | ||
---|---|---|
108–113 | Maybe just take this out and put it in the target_link_libraries below? |
mlir/lib/Bindings/Python/CMakeLists.txt | ||
---|---|---|
108–113 | It is all gone in the next revision :) |
Maybe just take this out and put it in the target_link_libraries below?