Skip to content

Commit 6bec180

Browse files
committed
[clang-format] Add plurals.txt to DEPENDS of style_options_depends
1 parent f7560ee commit 6bec180

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/lib/Format/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ endforeach ()
5555
add_custom_target(clang-format-check-format DEPENDS ${check_format_depends})
5656

5757
set(style_options_depends ${CLANG_SOURCE_DIR}/docs/ClangFormatStyleOptions.rst)
58+
set(docs_tools_dir ${CLANG_SOURCE_DIR}/docs/tools)
5859
add_custom_command(OUTPUT ${style_options_depends}
5960
COMMAND ${Python3_EXECUTABLE} dump_format_style.py
60-
WORKING_DIRECTORY ${CLANG_SOURCE_DIR}/docs/tools
61+
WORKING_DIRECTORY ${docs_tools_dir}
6162
DEPENDS ${CLANG_SOURCE_DIR}/include/clang/Format/Format.h
6263
${CLANG_SOURCE_DIR}/include/clang/Tooling/Inclusions/IncludeStyle.h
64+
${docs_tools_dir}/plurals.txt
65+
${docs_tools_dir}/dump_format_style.py
6366
)
6467
add_custom_target(clang-format-style-options DEPENDS ${style_options_depends})
6568
add_dependencies(clangFormat clang-format-style-options)

0 commit comments

Comments
 (0)