Skip to content

Commit 59986b1

Browse files
authored
Delete rust target dirs in ninja clean (#244)
1 parent c8a86c7 commit 59986b1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,12 @@ add_custom_command(
188188

189189
add_custom_target("preprocess-rust-rules" ALL
190190
DEPENDS ${rust_rules_ir_outputs})
191+
192+
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_CLEAN_FILES
193+
"${PROJECT_SOURCE_DIR}/libcc2rs/target"
194+
"${PROJECT_SOURCE_DIR}/libcc2rs-macros/target"
195+
"${PROJECT_SOURCE_DIR}/libc-dep/target"
196+
"${PROJECT_SOURCE_DIR}/rules/target"
197+
"${PROJECT_SOURCE_DIR}/rule-preprocessor/target"
198+
"${CMAKE_BINARY_DIR}/target_preprocessor"
199+
)

0 commit comments

Comments
 (0)