Skip to content

Commit d8924d4

Browse files
authored
[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 #142871 / #141116
1 parent 4959e8a commit d8924d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/API/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ foreach(header
326326
endforeach()
327327

328328
add_custom_command(TARGET liblldb POST_BUILD
329-
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}
329+
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}
330330
)
331331
add_custom_target(liblldb-header-staging DEPENDS ${lldb_staged_headers})
332332
add_dependencies(liblldb liblldb-header-staging)

0 commit comments

Comments
 (0)