Displaying 20 results from an estimated 1000 matches similar to: "CMake improvement suggestion"
2017 May 29
0
[PATCH] Add CMake build script
Description
===========
This patch adds support of CMake meta build system, so you can generate
Unix makefiles, VS 6.0-2017 projects and many more.
Features
========
* Win32 and Linux tested
* Travis CI test added
* Generates working Visual Studio 6.0-2017 solutions
* Generates working Unix Makefile
* Supported options (<option> - <default value>):
* `ENABLE_FLOATING_POINT` - on
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
I just copy the latest code in HowToUseJIT and run, but
the EngineBuilder(std::move(Owner)).create() keeps return null, any idea
why?
Here's my CMakeList:
cmake_minimum_required(VERSION 3.12)
project(llvm_test)
set(CMAKE_CXX_STANDARD 14)
find_package(LLVM REQUIRED CONFIG)
llvm_map_components_to_libnames(llvm_libs support core irreader orcjit native)
add_executable(llvm_test main.cpp)
2010 Sep 09
0
[LLVMdev] [PATCH][CMake] Removing LLVMLibDeps.cmake and exporting libraries for CMake clients.
On Sep 8, 2010, at 5:39 PM, Michael Spencer wrote:
> While implementing the object file library I ran into some weird
> linking issues. It turned out that you have to manually specify extra
> library dependencies in LLVMLibDeps.cmake, along with what you already
> specify in the CMakeLists.txt file for the component.
>
> The attached patches remove this requirement, and add
2010 Sep 09
2
[LLVMdev] [PATCH][CMake] Removing LLVMLibDeps.cmake and exporting libraries for CMake clients.
While implementing the object file library I ran into some weird
linking issues. It turned out that you have to manually specify extra
library dependencies in LLVMLibDeps.cmake, along with what you already
specify in the CMakeLists.txt file for the component.
The attached patches remove this requirement, and add real CMake
package export capabilities. A CMake user wishing to use LLVM can now
use
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
I found a private ErrorStr member, but didn't find the get function of this
member, could you tell me how I can get the error message?
On Wed, Sep 18, 2019 at 4:02 PM mayuyu.io <admin at mayuyu.io> wrote:
> Isn’t there a method in EngineBuilder to get the error message or
> something?
> I assume it’s you didn’t link in the JIT module
>
> Zhang
>
> 在
2016 Oct 10
2
Embedding llvm as a git submodule in Project
Hi Timo:
You need to find LLVMConfig.cmake in the binary or install directory tree,
not the source tree.
Although I don't embed clang/llvm, my config might help you figure it --
clang/llvm installed under (could have used build directory) ~/usr :
$ cd /Users/dhinton/projects/cover/build/ && rm -rf * && CC=~/usr/bin/clang
CXX=~/usr/bin/clang++ LLVM_DIR=~/usr/lib/cmake/llvm
2016 Oct 10
2
Embedding llvm as a git submodule in Project
Sorry my example wasn't helpful.
I did take a quick look at rust -- though I didn't download or try to build
it -- and they seem to allow you to use an installed or prebuilt version in
addition to building it in-tree. However, even when they build it in-tree,
they build the whole thing -- see mk/llvm.mk.
Good luck...
On Mon, Oct 10, 2016 at 1:33 AM, Timo Janssen via llvm-dev <
2010 Nov 03
0
[LLVMdev] LLVM Cmake module?
I compiled and installed it to the prefix /usr, but that's not the
issue. Once I actually compile and install LLVM with CMake by hand, I
get the share/llvm/cmake stuff installed correctly (can those files be
included in "normal" builds, or will LLVM switch to CMake as its primary
build system?). Now I'm running into the problem of cflags or includes
or something not being
2020 May 15
2
Building A Project Against LLVM
I decided to start playing around with building my own programming language
recently, and to use LLVM to handle the assembly-level details. I'm on
Kubuntu 18.04, and I started out using LLVM 6.0 from Kubuntu's packages. I
put together code for dealing with my language, then went over the
Kaleidoscope tutorials (which have been extremely helpful btw!). I was
able to successfully get my
2010 Nov 03
2
[LLVMdev] LLVM Cmake module?
[Please CC the mailing list]
Eli Gottlieb <eligottlieb at gmail.com> writes:
> OK, I'm just going to paste in my CMakeLists.txt file. Like I said,
> I'm building an LLVM install myself by untarring llvm, mkdir build in
> the root dir of the source, cd build/, cmake .., make.
>
>> cmake_minimum_required (VERSION 2.6)
>> project (libjllvm)
>>
2020 May 16
2
Building A Project Against LLVM
On Fri, May 15, 2020 at 6:53 PM Neil Nelson via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Rarrum,
>
> Kubuntu 20.04 LTS is available. You may be able to upgrade to 19.10, and
> then to 20.04 without reinstalling. It can be done on Xubuntu. A direct
> upgrade to 20.04 should become available. LLVM 10 then installs from the
> distribution packages. I put all this on a
2012 Jul 07
2
[LLVMdev] Problem in LLVM CMake modules
Hi again,
I'm trying to upgrade my LLVM bindings in Java from 2.9 to 3.1. To
do so, I regenerated the JNI bindings from fresh LLVM 3.1 headers, and
did a slight rewrite of my CMakeLists.txt file for building the C code.
Problem is, cmake no longer finishes at all. I receive the
following output, and then it just runs forever (while still responding
to a CTRL-C):
> eli at
2017 Nov 16
2
Correctly linking against libLLVM (single shared library build)
On 11/14/2017, 01:26 AM, Chris Bieneman wrote:
> Sorry for the delayed response. I've been out of town a lot lately.
>
> The documentation 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
2017 Jul 20
3
FYI: Ninja-build user may use CMake-3.9
This is useful for developer who uses multicore builder.
https://cmake.org/cmake/help/v3.9/release/3.9.html#other-changes
- The Ninja
<https://cmake.org/cmake/help/v3.9/generator/Ninja.html#generator:Ninja>
generator
has loosened the dependencies of object compilation. Object compilation now
depends only on custom targets and custom commands associated with
libraries on
2016 Nov 07
2
[llvm] To link or not to link
Hi,
I have migrated an LLVM front-end from LLVM 3.5 to 3.8 and now to 3.9 and ORC, and there is a concept which I could not transfer. Consider:
extern "C" { void somefunc() {} }
…
auto llvmfunc = llvm::Function::Create(type, llvmFunction::PrivateLinkage, "bla", module));
executionengine.addGlobalMapping(llvmfunc, &somefunc);
// now I have llvmfunc to work with and
2010 Dec 23
1
[LLVMdev] Linking to LLVM with CMake
Hi,
I'm having problems linking my project (outside of the llvm source tree) to
the LLVM jit. My CMake file contains:
------------
find_package(LLVM REQUIRED)
include_directories(${LLVM_INCLUDE_DIR})
link_directories(${LLVM_LINK_DIR})
add_definitions(-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS)
add_executable(nvm main.cpp)
llvm_config(nvm engine)
------------
cmake succeeds in
2017 Jul 20
2
FYI: Ninja-build user may use CMake-3.9
On Fri, Jul 21, 2017 at 1:16 AM Reid Kleckner <rnk at google.com> wrote:
> This is great news! Do we know who contributed the changes to cut the
> extra library dependencies?
>
> Do you think we should remove ENABLE_OBJLIB to simplify our CMake files in
> the near future? It seems to me that anyone who cares about highly parallel
> build throughput can upgrade CMake to get
2020 May 16
2
Building A Project Against LLVM
I've managed to get 10.0.0 working now.. there were a couple things I had
to adjust.
The Kaleidoscope example had me doing this before creating the object file:
llvm::InitializeAllTargetInfos();
llvm::InitializeAllTargets();
llvm::InitializeAllTargetMCs();
llvm::InitializeAllAsmParsers();
llvm::InitializeAllAsmPrinters();
It turns out I can get away with just this, since I'm not (yet)
2014 Feb 27
3
[LLVMdev] Understanding some of the recent cmake build changes
I was a bit confused with what the difference was between the old
target_link_libraries(foo bar)
and the new
target_link_libraries(foo INTERFACE|PRIVATE|PUBLIC bar)
To try to find out, I decided to look at the generated build.ninja.
The difference that shows up is far fewer order only dependencies. For
example
build lib/TableGen/CMakeFiles/LLVMTableGen.dir/Error.cpp.o:
CXX_COMPILER
2013 Sep 03
0
[LLVMdev] Adding a library to CMake deps
Renato Golin <renato.golin at linaro.org> writes:
> When cross-compiling LLVM to ARM, using CMake+Ninja, I realized that
> libxml2 depends on lzma, but the dependency is not explicit on the
> build.ninja file under the "build bin/c-index-test"'s LINK_LIBRARIES (which
> is the only one that cares about it).
>
> I couldn't find the place to add -llzma into