[MLIR] Enable distribution target in standalone builds
authorMichał Górny <mgorny@gentoo.org>
Wed, 19 Oct 2022 17:14:59 +0000 (19:14 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 20 Oct 2022 02:46:24 +0000 (04:46 +0200)
Invoke llvm_distribution_add_targets() when doing standalone build
explicitly in order to create the `distribution` target.

Differential Revision: https://reviews.llvm.org/D136269

mlir/CMakeLists.txt

index ac98cc2..bd3d309 100644 (file)
@@ -260,3 +260,7 @@ add_subdirectory(cmake/modules)
 if (MLIR_ENABLE_PYTHON_BENCHMARKS)
   add_subdirectory(utils/mbr)
 endif()
+
+if(MLIR_STANDALONE_BUILD)
+  llvm_distribution_add_targets()
+endif()