[llvm] [lldb][Windows] reconfigure project in the correct directory (PR #206781)

Felipe de Azevedo Piovezan via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 00:27:09 PDT 2026


================
@@ -74,14 +76,29 @@ cmake -G Ninja ^
     -DLLDB_TEST_USE_LLDB_SERVER=0 ^
     -DLLVM_LIT_ARGS="-v --time-tests --xunit-xml-output=C:\\workspace\\llvm-build\\test\\results-no-lldb-server.xml" ^
     -DPython3_EXECUTABLE="C:\\Program Files\\Python313\\python.exe" || exit /b 1
-
-if not exist ..\\llvm-build\\test mkdir ..\\llvm-build\\test
-
 ninja check-lldb -C ..\\llvm-build || exit /b 1
 
-cmake -B ..\\llvm-build\\ ^
+cmake -G Ninja ^
+    -S llvm ^
+    -B ..\\llvm-build\\ ^
+    -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
+    -DCMAKE_INSTALL_PREFIX=..\\llvm-install\\base ^
+    -DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake ^
+    -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" ^
+    -DLLVM_ENABLE_ASSERTIONS=ON ^
+    -DLLVM_ENABLE_LIBEDIT=OFF ^
+    -DLLVM_OPTIMIZED_TABLEGEN=ON ^
+    -DLLVM_BUILD_TOOLS=ON ^
+    -DLLVM_BUILD_UTILS=ON ^
+    -DLLVM_ENABLE_LIBXML2=FORCE_ON ^
+    -DLLDB_ENABLE_SWIG=ON ^
+    -DLLDB_ENABLE_PYTHON=ON ^
+    -DLLDB_ENABLE_LUA=OFF ^
+    -DLLDB_ENABLE_LIBXML2=ON ^
+    -DLLVM_TARGETS_TO_BUILD=Native ^
----------------
felipepiovezan wrote:

I understand you wanted to copy everything just to be safe, but the real problem was only the missing `-S llvm` flag. I think it's important to keep this as short as possible to make it visually easy to tell what is important in this second invocation.

So a `cmake -S llvm  -B ..\\llvm-build\\  -DLLDB_TEST_USE_LLDB_SERVER=1 `  suffices here

https://github.com/llvm/llvm-project/pull/206781


More information about the llvm-commits mailing list