[Mlir-commits] [mlir] [mlir][XeVM] Use libocloc API for binary generation. (PR #188353)
Artem Kroviakov
llvmlistbot at llvm.org
Tue Apr 7 00:51:40 PDT 2026
================
@@ -0,0 +1,82 @@
+# Findocloc.cmake
+
+# Define a function to search for ocloc
+function(find_ocloc)
+ message(STATUS "Searching for ocloc")
+
+ if(WIN32)
+ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(OCLOC_SUFFIX "64")
+ else()
+ set(OCLOC_SUFFIX "32")
+ endif()
+
+ set(OCLOC_EXE_PATHS "${OCLOC_PACKAGE_DIR}" "${OCLOC_PACKAGE_DIR}/bin")
----------------
akroviakov wrote:
It _can_ be set by a user. The second `find_program` call will also use `PATH`.
You can check the `NO_DEFAULT_PATH` behavior in the [`find_program` doc](https://cmake.org/cmake/help/latest/command/find_program.html).
https://github.com/llvm/llvm-project/pull/188353
More information about the Mlir-commits
mailing list