search for: add_llvm_executable

Displaying 12 results from an estimated 12 matches for "add_llvm_executable".

2010 Feb 10
1
[LLVMdev] llvm in a subdirectory with cmake
Hi All, The proposed patch makes possible to use LLVM's CMake build infrastructure (most importantly add_llvm_library and add_llvm_executable macros) from the project that has llvm in a subdirectory. For example: demo/ llvm/ demo.cpp CMakeLists.txt where CMakeLists.txt is as follows: # ----------------------------- Start of CMakeLists.txt ---------------------------------------- project(DEMO) cmake_minimum_required(VERSI...
2010 Aug 02
6
[LLVMdev] CMake broken?
...MAsmParser not found in list of llvm libraries. Call Stack (most recent call first): cmake/modules/LLVMConfig.cmake:27 (explicit_map_components_to_libraries) cmake/modules/LLVMConfig.cmake:20 (explicit_llvm_config) cmake/modules/AddLLVM.cmake:61 (llvm_config) cmake/modules/AddLLVM.cmake:78 (add_llvm_executable) tools/llvm-mc/CMakeLists.txt:3 (add_llvm_tool) Tom
2010 Aug 02
0
[LLVMdev] CMake broken?
...AsmPrinter not found in list of llvm libraries. Call Stack (most recent call first): cmake/modules/LLVMConfig.cmake:27 (explicit_map_components_to_libraries) cmake/modules/LLVMConfig.cmake:20 (explicit_llvm_config) cmake/modules/AddLLVM.cmake:61 (llvm_config) cmake/modules/AddLLVM.cmake:78 (add_llvm_executable) tools/llvm-mc/CMakeLists.txt:3 (add_llvm_tool) On Aug 2, 2010, at 11:12 AM, Tom Care wrote: > Hi all, > > CMake seems to have broken in the last few days - or is it just me? > > tcare:llvm-release tcare$ make -j4 > -- Target triple: x86_64-apple-darwin10.5.0 > -- Native...
2008 Nov 14
3
[LLVMdev] bugs in CMake build
...nown component name: powerpc CMake Error at cmake/modules/LLVMConfig.cmake:41 (message): llvm-config failed for executable llc Call Stack (most recent call first): cmake/modules/LLVMConfig.cmake:5 (nix_llvm_config) cmake/modules/AddLLVM.cmake:16 (llvm_config) cmake/modules/AddLLVM.cmake:36 (add_llvm_executable) tools/llc/CMakeLists.txt:3 (add_llvm_tool) I'll see if I can find the cause of the problem myself, or does anyone have a suggestion about this? Thanks, Kevin André -------------- next part -------------- A non-text attachment was scrubbed... Name: cmake_llvm_bug.patch Type: application/...
2016 Feb 09
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
...+ llvm_map_components_to_libnames(llvm_libs + ${ARG_LINK_COMPONENTS} + ${LLVM_LINK_COMPONENTS} + ) + endif() + endif() + if(CMAKE_VERSION VERSION_LESS 2.8.12) # Link libs w/o keywords, assuming PUBLIC. target_link_libraries(${name} @@ -885,11 +891,18 @@ add_llvm_executable(${test_name} IGNORE_EXTERNALIZE_DEBUGINFO ${ARGN}) set(outdir ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}) set_output_directory(${test_name} BINARY_DIR ${outdir} LIBRARY_DIR ${outdir}) + if (LLVM_LINK_LLVM_DYLIB) + target_link_libraries(${test_name} + gtest + gtest_main +...
2016 Sep 03
2
llc error
I updated to the latest revision and now llvm does not build and quits cmake with CMake Error at cmake/modules/LLVMProcessSources.cmake:83 (message): Found unknown source file ../llvm-revec/lib/CodeGen/MachineFunctionAnalysis.cpp Please update ../llvm-revec/lib/CodeGen/CMakeLists.txt Thanks On Sat, Sep 3, 2016 at 2:09 AM, Craig Topper <craig.topper at gmail.com> wrote: >
2010 Aug 02
0
[LLVMdev] CMake broken?
Tom Care <tcare at apple.com> writes: > This was after starting with an empty build directory. It seems to > work if I omit -DLLVM_TARGETS_TO_BUILD=X86, but a few days ago this > was working with just this target. Yep. I can replicate the problem on Linux with mkdir foo && cd foo cmake -DLLVM_TARGETS_TO_BUILD=X86 ../llvm I'll investigate a bit.
2011 Mar 15
2
[LLVMdev] How to choose targets to build in CMake?
...`X86' not found in list of llvm libraries. Call Stack (most recent call first): cmake/modules/LLVMConfig.cmake:47 (explicit_map_components_to_libraries) cmake/modules/LLVMConfig.cmake:40 (explicit_llvm_config) cmake/modules/AddLLVM.cmake:82 (llvm_config) cmake/modules/AddLLVM.cmake:114 (add_llvm_executable) examples/Kaleidoscope/Chapter4/CMakeLists.txt:3 (add_llvm_example) -- Configuring incomplete, errors occurred! When I try the autotools, I can get what I want by running configure with --enable-targets=some-backend Any ideas? I use cmake 2.8.0 on a fedora 10 i686 and I check out llvm from the...
2008 Nov 12
1
[LLVMdev] cmake patch to build other targets
Hi, attached is a patch to improve including targets other than X86 in CMake MSVC builds. When adding libs to link, rather than always using LLVMX86CodeGen and LLVMX86AsmPrinter, it grabs the correct ones. It also adds "force-link-ints" to the various TargetMachine cpp files, as well as X86AsmPrinter and PPCAsmPrinter. These are needed to be able to encourage the Win32 linker to
2008 Nov 14
0
[LLVMdev] bugs in CMake build
...gt; CMake Error at cmake/modules/LLVMConfig.cmake:41 (message): > llvm-config failed for executable lli > Call Stack (most recent call first): > cmake/modules/LLVMConfig.cmake:5 (nix_llvm_config) > cmake/modules/AddLLVM.cmake:16 (llvm_config) > cmake/modules/AddLLVM.cmake:36 (add_llvm_executable) > tools/lli/CMakeLists.txt:3 (add_llvm_tool) This doesn't surprise me. It's broken. > This reminds me that I have disabled some of the libraries that I > don't need for my compiler (such as ExecutionEngine and the JIT), and > I have deleted some other directories as wel...
2015 Aug 27
2
CMake vs. autotools output differences
Hello, I've spent some time hacking up the Debian packaging to use CMake instead of autotools; it's still a work in progress, but it works. It's a bit of a mess, though, primarily because there are differences in the output of the CMake and autotools builds. On my Ubuntu machine, the dependencies for clang-3.6 look like this: $ ldd /usr/bin/clang-3.6 linux-vdso.so.1 =>
2016 Feb 06
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
Hans, I have posted a complete patch for solving the linkage issues with LLVM_LINK_LLVM_DYLIB on Phabricator at http://reviews.llvm.org/D16945. The bulk of the fix the simple changes of... Index: cmake/modules/AddLLVM.cmake =================================================================== --- cmake/modules/AddLLVM.cmake (revision 259743) +++ cmake/modules/AddLLVM.cmake (working copy) @@