https://github.com/Nerixyz created 
https://github.com/llvm/llvm-project/pull/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.

>From 94a761b264163b27005c322a0d099e9455220e74 Mon Sep 17 00:00:00 2001
From: Nerixyz <nerix...@outlook.de>
Date: Sat, 14 Jun 2025 12:27:11 +0200
Subject: [PATCH] [LLDB] Explicitly use python for version fixup

---
 lldb/source/API/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt
index 2772aa920411f..f4a323aaf267c 100644
--- a/lldb/source/API/CMakeLists.txt
+++ b/lldb/source/API/CMakeLists.txt
@@ -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)

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to