|
| 1 | +From dd0b0215100ee530ee58dec18726cff70c0b17a1 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Christopher Bate <cbate@nvidia.com> |
| 3 | +Date: Sun, 11 Jan 2026 13:40:52 -0700 |
| 4 | +Subject: [PATCH 1/1] Fix build with BUILD_SHARED_LIBS=ON and prevent automatic |
| 5 | + creation of empty media directory |
| 6 | + |
| 7 | +--- |
| 8 | + include/cuda_tile/Dialect/CudaTile/IR/CMakeLists.txt | 2 +- |
| 9 | + lib/Bytecode/Translation/CMakeLists.txt | 1 + |
| 10 | + lib/Dialect/CudaTile/IR/CMakeLists.txt | 3 +++ |
| 11 | + 3 files changed, 5 insertions(+), 1 deletion(-) |
| 12 | + |
| 13 | +diff --git a/include/cuda_tile/Dialect/CudaTile/IR/CMakeLists.txt b/include/cuda_tile/Dialect/CudaTile/IR/CMakeLists.txt |
| 14 | +index 93b9c7f..414db08 100644 |
| 15 | +--- a/include/cuda_tile/Dialect/CudaTile/IR/CMakeLists.txt |
| 16 | ++++ b/include/cuda_tile/Dialect/CudaTile/IR/CMakeLists.txt |
| 17 | +@@ -43,10 +43,10 @@ set(LLVM_TARGET_DEFINITIONS Types.td) |
| 18 | + tablegen(MLIR CudaTileTypes.md -gen-typedef-doc -allow-hugo-specific-features) |
| 19 | + |
| 20 | + set(GEN_DOC_DIR ${CMAKE_SOURCE_DIR}/media/docs/Dialects/CudaTile) |
| 21 | +-file(MAKE_DIRECTORY ${GEN_DOC_DIR}) |
| 22 | + |
| 23 | + add_custom_command( |
| 24 | + OUTPUT ${GEN_DOC_DIR}/CudaTile.md |
| 25 | ++ COMMAND ${CMAKE_COMMAND} -E make_directory ${GEN_DOC_DIR} |
| 26 | + COMMAND ${CMAKE_COMMAND} -E cat |
| 27 | + ${CMAKE_CURRENT_BINARY_DIR}/CudaTile.md |
| 28 | + ${CMAKE_CURRENT_BINARY_DIR}/CudaTileOps.md |
| 29 | +diff --git a/lib/Bytecode/Translation/CMakeLists.txt b/lib/Bytecode/Translation/CMakeLists.txt |
| 30 | +index e8055b7..b783b4d 100644 |
| 31 | +--- a/lib/Bytecode/Translation/CMakeLists.txt |
| 32 | ++++ b/lib/Bytecode/Translation/CMakeLists.txt |
| 33 | +@@ -12,4 +12,5 @@ add_mlir_library(CudaTileBytecodeTranslation |
| 34 | + CudaTileDialect |
| 35 | + MLIRIR |
| 36 | + MLIRPass |
| 37 | ++ MLIRTranslateLib |
| 38 | + ) |
| 39 | +diff --git a/lib/Dialect/CudaTile/IR/CMakeLists.txt b/lib/Dialect/CudaTile/IR/CMakeLists.txt |
| 40 | +index 822a2c7..3934b30 100644 |
| 41 | +--- a/lib/Dialect/CudaTile/IR/CMakeLists.txt |
| 42 | ++++ b/lib/Dialect/CudaTile/IR/CMakeLists.txt |
| 43 | +@@ -23,4 +23,7 @@ add_mlir_library(CudaTileDialect |
| 44 | + LINK_LIBS PUBLIC |
| 45 | + MLIRIR |
| 46 | + MLIRSideEffectInterfaces |
| 47 | ++ MLIRFunctionInterfaces |
| 48 | ++ MLIRInferTypeOpInterface |
| 49 | ++ MLIRControlFlowInterfaces |
| 50 | + ) |
| 51 | +-- |
| 52 | +2.39.3 (Apple Git-146) |
| 53 | + |
0 commit comments