Repository navigation
Add CMake build for ModelBuilder project - #2342
Conversation
| # runtime libraries | ||
| "@llvm-project//mlir:tools/libvulkan-runtime-wrappers.so", | ||
| ":runtime-support.so", | ||
| "//experimental/ModelBuilder/test:runtime-support.so", |
There was a problem hiding this comment.
I think this shouldn't be necessary. We should handle local references fine in bazel_to_cmake. Is it not working?
There was a problem hiding this comment.
You're right. Looking at it again it wasn't working due to the colon at the beginning. This is not needed in bazel so I removed it.
There was a problem hiding this comment.
Hmm we have special handling for the leading colon, so this should work https://sourcegraph.com/github.com/google/iree@6b7b71bdcf024caf8b302b06a9ee608f9126a997/-/blob/build_tools/bazel_to_cmake/bazel_to_cmake_converter.py#L202
https://sourcegraph.com/github.com/google/iree/-/blob/build_tools/cmake/iree_cc_library.cmake#L83
There was a problem hiding this comment.
What issue are you seeing with bazel_to_cmake if you leave this unchanged? My understanding is that this should work fine with leading colons in BUILD getting translated to leading :: in CMakeLists.txt, which we then prepend with the package path. I'm curious what failed.
Update bazel file to allow bazel_to_cmake to work. Add few workarounds for dynamic library not working with the script.
Update bazel file to allow bazel_to_cmake to work. Add few workarounds
for dynamic library not working with the script.