Displaying 3 results from an estimated 3 matches for "cbreakcompil".
Did you mean:
cbreakcompiler
2020 May 16
2
Building A Project Against LLVM
...is going wrong in there
> preventing it from adding the actual library files to the linker
> commandline.
>
> I added this to my CMakeLists.txt:
> set(CMAKE_VERBOSE_MAKEFILE on)
>
> Which shows no LLVM libs at all being passed in:
>
> [ 8%] Linking CXX executable ../bin/CBreakCompiler
> /usr/bin/c++ CMakeFiles/CBreakCompiler.dir/src/main.cpp.o
> CMakeFiles/CBreakCompiler.dir/src/Parser.cpp.o
> CMakeFiles/CBreakCompiler.dir/src/SourceTokenizer.cpp.o
> CMakeFiles/CBreakCompiler.dir/src/IRCompiler.cpp.o
> CMakeFiles/CBreakCompiler.dir/src/CompiledOutput.cpp.o
&...
2020 May 16
2
Building A Project Against LLVM
...point I'm not sure what to try next. Is there additional
> documentation somewhere for how to "install" a current release of LLVM
> correctly?
>
>
> For reference here's my final CMakeLists.txt file:
>
> cmake_minimum_required(VERSION 3.10)
>
> project(CBreakCompiler)
>
> set(CMAKE_CXX_STANDARD 17)
> set(CMAKE_CXX_STANDARD_REQUIRED True)
> add_compile_options(-Wall)
>
> find_package(LLVM 10.0.0 REQUIRED CONFIG)
>
> message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
> message(STATUS "Using LLVMConfig.cmake in: ${LLVM...
2020 May 15
2
Building A Project Against LLVM
...cessfully compile, but not link.
At this point I'm not sure what to try next. Is there additional
documentation somewhere for how to "install" a current release of LLVM
correctly?
For reference here's my final CMakeLists.txt file:
cmake_minimum_required(VERSION 3.10)
project(CBreakCompiler)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
add_compile_options(-Wall)
find_package(LLVM 10.0.0 REQUIRED CONFIG)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
include_directories(${LLVM_I...