Details
Details
- Reviewers
- None
- Commits
- rG25c8ffa223ec: [docs] Clarify how to run cmake and llvm-lit with Visual Studio addressing…
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/docs/GettingStartedVS.rst | ||
---|---|---|
126 | There are some potential gotchas lurking here. Visual Studio (often) includes cmake, git, ninja, and even python. Those might be different versions than what you installed in the previous steps. Depending how vcvarsall.bat juggles the path, you might not be invoking the versions you think you are. In many cases, this might not be a problem, but it can be a real mess in lldb, especially lldb tests. My solution is:
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DLLDB_TEST_DEBUG_TEST_CRASHES=1 -DLLDB_PYTHON_HOME="C:\Program Files\Python38" -DPython3_ROOT_DIR="C:\Program Files\Python38" -DPython3_FIND_REGISTRY=LAST -DLLDB_TEST_COMPILER=D:\src\llvm\build\ninja_dbg\bin\clang.exe ..\..\llvm-project\llvm -DLLVM_ENABLE_ZLIB=OFF -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" |
Comment Actions
I completely agree, the Getting Started document should be modernized considering a current Visual Studio 2019 installation bundles tools and that GnuWin32 is antique. I will create revision for your review.
There are some potential gotchas lurking here.
Visual Studio (often) includes cmake, git, ninja, and even python. Those might be different versions than what you installed in the previous steps. Depending how vcvarsall.bat juggles the path, you might not be invoking the versions you think you are. In many cases, this might not be a problem, but it can be a real mess in lldb, especially lldb tests.
My solution is: