search for: map_components

Displaying 2 results from an estimated 2 matches for "map_components".

2017 Nov 16
2
Correctly linking against libLLVM (single shared library build)
...you referenced is unfortunately out of date (you might notice it still references autoconf). I'll see if I can find time to update it, but the guidance should be to use the `llvm_config` CMake function instead. The proper usage of that in the example there would be to replace the call to `llvm_map_components_to_libnames` with `llvm_config(simple-tool support core irreader)`. > > `llvm_config` should properly handle the LLVM shared library. Actually it does not work at all. It behaves exactly the same as map_components with this CMakeLists.txt: cmake_minimum_required(VERSION 3.4.3) project(Simpl...
2017 Oct 23
2
Correctly linking against libLLVM (single shared library build)
...was causing issues and apparently it is only meant for LLVM developers. Our guidelines prohibit linking against static libraries unless there is no other option. After this change, some external tools failed building because they try to link against libraries given by the cmake function `llvm_map_components_to_libnames`. This function returns library names as if each component was in its own library. (LLVMSupport, LLVMCore, ...) Usage of this function comes from documentation: https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project 1) Is `llvm_map_components_to_libnames` working as expecte...