Skip to content

Commit

Permalink
[CIR] Support running tests in standalone builds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgorny committed Dec 22, 2024
1 parent 0204722 commit 9b9353a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clang/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@ if(CLANG_ENABLE_CIR)
list(APPEND CLANG_TEST_DEPS
cir-opt
cir-translate
mlir-translate
)
if(NOT CLANG_BUILT_STANDALONE)
list(APPEND CLANG_TEST_DEPS
mlir-translate
)
endif()
endif()

if(CLANG_ENABLE_STATIC_ANALYZER)
Expand Down

0 comments on commit 9b9353a

Please sign in to comment.