CMake with LLVM toolchain
CMake with LLVM toolchain
CMakelists
1
2
add_link_options("-fuse-ld=lld")
add_compile_options(-fstandalone-debug) # for debug
CMake Config
1
2
cmake -B build-Debug -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
This post is licensed under
CC BY 4.0
by the author.