Created
May 18, 2022 14:29
-
-
Save ttvd/efa048205a117c52f964fb3dbf00dbd0 to your computer and use it in GitHub Desktop.
Building LLVM and Clang 14 on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x Download Clang and LLVM source. | |
x Extract them to the same top level folder, so that they are side by side. | |
c:\temp\clang-14.0.0.src | |
c:\temp\llvm-14.0.0.src | |
x Generate VS LLVM solution, build release LLVM (for example within c:\temp\llvm-14.0.0.src\_build) | |
x For VS Clang solution, we need to set proper Cmake variables | |
xx LLVM_DIR = c:\Temp\llvm-14.0.0.src\_build\lib\cmake\llvm | |
xx LLVM_LIBRARY_DIR = c:\Temp\llvm-14.0.0.src\_build\Release\lib | |
xx LLVM_MAIN_INCLUDE_DIR = c:\Temp\llvm-14.0.0.src\include | |
xx LLVM_MAIN_SRC_DIR = C:\Temp\llvm-14.0.0.src ?? (possibly not necessary) | |
xx LLVM_TABLEGEN_EXE = c:\Temp\llvm-14.0.0.src\_build\Release\bin/llvm-tblgen.exe | |
xx LLVM_TOOLS_BINARY_DIR = c:\Temp\llvm-14.0.0.src\_build\Release\bin | |
xx Repeated Cmake configure seems to run into a Cmake error for me (at least with clang 14 src). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment