Skip to content

Commit d76bb2b

Browse files
authored
[mlir] Fix missing mlir-capi-global-constructors-test on standalone build (#154576)
Add `mlir-capi-global-constructors-test` to `MLIR_TEST_DEPENDS` when `MLIR_ENABLE_EXECUTION_ENGINE` is enabled, to ensure that it is also built during standalone builds, and therefore fix test failure due to the executable being missing. I don't understand the purpose of `LLVM_ENABLE_PIC AND TARGET ${LLVM_NATIVE_ARCH}` block, but the condition is not true in standalone builds. Fixes 7610b13.
1 parent 9f16791 commit d76bb2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mlir/test/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ if(MLIR_ENABLE_CUDA_RUNNER)
157157
endif()
158158

159159
if(MLIR_ENABLE_EXECUTION_ENGINE)
160-
list(APPEND MLIR_TEST_DEPENDS mlir-capi-execution-engine-test)
160+
list(APPEND MLIR_TEST_DEPENDS
161+
mlir-capi-execution-engine-test
162+
mlir-capi-global-constructors-test
163+
)
161164
endif()
162165

163166
if(MLIR_ENABLE_ROCM_RUNNER)

0 commit comments

Comments
 (0)