Last active
October 19, 2020 12:48
-
-
Save Kazhuu/3b7365442050fbd439c2e3d3236de748 to your computer and use it in GitHub Desktop.
LLVM + RV CMake generate command
This file contains hidden or 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
# To add RV support and options check: https://github.com/cdl-saarland/rv | |
# Clone RV to root of the LLVM monorepo. Make a build dir and run following CMake command in it. | |
cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_INSTALL_PREFIX:PATH=~/local/llvm/ \ | |
-DLLVM_TARGETS_TO_BUILD:STRING=X86 -DLLVM_ENABLE_PROJECTS:STRING="clang" \ | |
-DLLVM_USE_LINKER:STRING="gold" -DLLVM_CCACHE_BUILD:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | |
-DBUILD_SHARED_LIBS:BOOL=ON -DLLVM_OPTIMIZED_TABLEGEN:BOOL=ON -DLLVM_CCACHE_DIR:PATH=./ccache/ \ | |
-DLLVM_ENABLE_RTTI:BOOL=ON \ | |
-DLLVM_EXTERNAL_PROJECTS="rv" -DLLVM_EXTERNAL_RV_SOURCE_DIR=../rv -DRV_ENABLE_CRT:BOOL=ON \ | |
-DLLVM_RVPLUG_LINK_INTO_TOOLS:BOOL=ON -DRV_DEBUG:BOOL=ON -DRV_TARGETS_TO_BUILD:STRING="clang" \ | |
../llvm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment