You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had to do this previously for testing version changes that aren't in my distro's package manager, or for the rarer case where we've had to make changes to upstream LLVM. Each time I find myself repeating the same process of rebuilding LLVM locally, figuring out the right CMake options, and so on.
We should document the process, as well as how the build system interacts with an LLVM installation, to avoid this kind of repeated work in the future.
This issue will be a staging area for documenting my process this time round, while I work through it.
The text was updated successfully, but these errors were encountered:
The -DLLVM_BUILD_LLVM_DYLIB=On option is needed - I think - for the backend build system's use of -lLLVM rather than the old style of linking each of the LLVM components individually.
Get a cup of coffee here; it takes a long time to build even on a decent machine.
Build the backend against this custom version of LLVM:
Note that to get the backend to accept a custom version of LLVM, the usual LLVM_DIR incantation doesn't work - this is because LLVMKompilePrelude.cmake needs to do some (non-idiomatic, but necessary) looking up of tools like clang on the PATH.
I've had to do this previously for testing version changes that aren't in my distro's package manager, or for the rarer case where we've had to make changes to upstream LLVM. Each time I find myself repeating the same process of rebuilding LLVM locally, figuring out the right CMake options, and so on.
We should document the process, as well as how the build system interacts with an LLVM installation, to avoid this kind of repeated work in the future.
This issue will be a staging area for documenting my process this time round, while I work through it.
The text was updated successfully, but these errors were encountered: