Skip to content

Commit c70cb63

Browse files
committed
[CIR] Support running tests in standalone builds
The only change needed was making the dependency on mlir-translate target optional, as mlir-translate is installed as part of mlir when building standalone.
1 parent 154a71a commit c70cb63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/test/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,12 @@ if(CLANG_ENABLE_CIR)
8989
list(APPEND CLANG_TEST_DEPS
9090
cir-opt
9191
cir-translate
92-
mlir-translate
9392
)
93+
if(NOT CLANG_BUILT_STANDALONE)
94+
list(APPEND CLANG_TEST_DEPS
95+
mlir-translate
96+
)
97+
endif()
9498
endif()
9599

96100
if(CLANG_ENABLE_STATIC_ANALYZER)

0 commit comments

Comments
 (0)