[lldb][scripts] Use named args in versioning script (#145993)

Using named args means that you don't need to keep track of 5 positional
args.
This commit is contained in:
Chelsea Cassanova
2025-06-26 17:02:22 -07:00
committed by GitHub
parent f93df5ebd9
commit c3811c8474
3 changed files with 17 additions and 16 deletions

View File

@@ -326,7 +326,7 @@ foreach(header
endforeach()
add_custom_command(TARGET liblldb POST_BUILD
COMMAND "${Python3_EXECUTABLE}" ${LLDB_SOURCE_DIR}/scripts/version-header-fix.py ${LLDB_SOURCE_DIR}/include/lldb/lldb-defines.h ${lldb_header_staging_dir}/lldb-defines.h ${LLDB_VERSION_MAJOR} ${LLDB_VERSION_MINOR} ${LLDB_VERSION_PATCH}
COMMAND "${Python3_EXECUTABLE}" ${LLDB_SOURCE_DIR}/scripts/version-header-fix.py -i ${LLDB_SOURCE_DIR}/include/lldb/lldb-defines.h -o ${lldb_header_staging_dir}/lldb-defines.h -m ${LLDB_VERSION_MAJOR} -n ${LLDB_VERSION_MINOR} -p ${LLDB_VERSION_PATCH}
)
add_custom_target(liblldb-header-staging DEPENDS ${lldb_staged_headers})
add_dependencies(liblldb liblldb-header-staging)