mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 00:46:30 +00:00
build(lint): fix lintuncrustify #18945
Problem: lintuncrustify doesn't actually do anything. Solution: - Fix the parameters. - Fail correctly on nonzero result. followup to #18940
This commit is contained in:
@@ -808,9 +808,10 @@ def_cmd_target(lintuncrustify ${UNCRUSTIFY_PRG} UNCRUSTIFY_PRG false) # Non-fat
|
||||
if(UNCRUSTIFY_PRG)
|
||||
add_custom_command(OUTPUT lintuncrustify-cmd APPEND
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-DUNCRUSTIFY_PRG=${UNCRUSTIFY_PRG}
|
||||
-DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}
|
||||
-DLINT_NVIM_SOURCES=${LINT_NVIM_SOURCES}
|
||||
-D UNCRUSTIFY_PRG=${UNCRUSTIFY_PRG}
|
||||
-D PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}
|
||||
-D NVIM_SOURCES="${NVIM_SOURCES}"
|
||||
-D NVIM_HEADERS="${NVIM_HEADERS}"
|
||||
-P ${PROJECT_SOURCE_DIR}/cmake/RunUncrustify.cmake)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user