mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
[LLDB] Explicitly use python for version fixup (#144217)
On Windows, the post build command would open the script in the default editor, since it doesn't know about shebangs. This effectively adds `python3` in front of the command. Amends https://github.com/llvm/llvm-project/pull/142871 / https://github.com/llvm/llvm-project/pull/141116
This commit is contained in:
@@ -326,7 +326,7 @@ foreach(header
|
||||
endforeach()
|
||||
|
||||
add_custom_command(TARGET liblldb POST_BUILD
|
||||
COMMAND ${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 ${LLDB_SOURCE_DIR}/include/lldb/lldb-defines.h ${lldb_header_staging_dir}/lldb-defines.h ${LLDB_VERSION_MAJOR} ${LLDB_VERSION_MINOR} ${LLDB_VERSION_PATCH}
|
||||
)
|
||||
add_custom_target(liblldb-header-staging DEPENDS ${lldb_staged_headers})
|
||||
add_dependencies(liblldb liblldb-header-staging)
|
||||
|
||||
Reference in New Issue
Block a user