[llvm-branch-commits] [mlir] [MLIR][Standalone] test Standalone against install distributions (PR #157944)

Renato Golin via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Sep 11 15:53:35 PDT 2025


================
@@ -65,6 +65,12 @@ if (MLIR_INCLUDE_INTEGRATION_TESTS)
 
 endif()
 
+option(MLIR_RUN_STANDALONE_INSTALL_TESTS "Run Standalone example install tests." ON)
+if(MLIR_RUN_STANDALONE_INSTALL_TESTS AND "${CMAKE_INSTALL_PREFIX}" STREQUAL "")
+  message(WARNING "Standalone example install tests will install into root!\
----------------
rengolin wrote:

What do you mean by `root`? The GIT root? `/`? The build directory root?

Usually, when I do automatic installs for CI, I set it to `%build/install`, so that it's guaranteed to be writable by the build process and in the same filesystem (ex. the source directory may be NFS and slow).

https://github.com/llvm/llvm-project/pull/157944


More information about the llvm-branch-commits mailing list