search for: llvm_definit

Displaying 20 results from an estimated 32 matches for "llvm_definit".

2015 Oct 06
2
Extra space in LLVM_DEFINITIONS causes CMake 3.1 to fail
LLVM_DEFINITIONS used to be defined as set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") Now it is defined as set(LLVM_DEFINITIONS " -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS") (note that it is no longer a cmake list but a stri...
2015 Oct 06
2
Extra space in LLVM_DEFINITIONS causes CMake 3.1 to fail
...I’ll have a look at this to try and figure out what’s going on. John From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Mueller-Roemer, Johannes Sebastian via llvm-dev Sent: 06 October 2015 08:50 To: llvm-dev at lists.llvm.org Subject: Re: [llvm-dev] Extra space in LLVM_DEFINITIONS causes CMake 3.1 to fail Correction, I was accidentally testing with an old version for my CMake 3.2+ tests. They fail just the same with the current version. -- Johannes S. Mueller-Roemer, MSc Wiss. Mitarbeiter - Interactive Engineering Technologies (IET) Fraunhofer-Institut für...
2018 Feb 23
3
cmake + llvm : issue when embedding llvm
...So, I added this code into my cmake file :   find_package(LLVM REQUIRED CONFIG)   message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")   message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")   message("LLVM_INCLUDE_DIRS=${LLVM_INCLUDE_DIRS}")   message("LLVM_DEFINITIONS=${LLVM_DEFINITIONS}") But I got several cmake error messages, here is my output :     -- Using LLVMConfig.cmake in: C:\\Luciad_src\\libs\\LLVM\\cmake\\modules     LLVM_INCLUDE_DIRS=     LLVM_DEFINITIONS=     CMake Error at C:/Luciad_src/libs/LLVM/cmake/modules/LLVM-Config.cmake:31...
2018 Feb 23
0
cmake + llvm : issue when embedding llvm
...;> >> find_package(LLVM REQUIRED CONFIG) >> message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") >> message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") >> message("LLVM_INCLUDE_DIRS=${LLVM_INCLUDE_DIRS}") >> message("LLVM_DEFINITIONS=${LLVM_DEFINITIONS}") >> >> But I got several cmake error messages, here is my output : >> >> -- Using LLVMConfig.cmake in: C:\\Luciad_src\\libs\\LLVM\\cm >> ake\\modules >> LLVM_INCLUDE_DIRS= >> LLVM_DEFINITIONS= >> CMake Err...
2018 Feb 26
1
cmake + llvm : issue when embedding llvm
...VM REQUIRED CONFIG) >>   message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") >>   message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") >>   message("LLVM_INCLUDE_DIRS=${LLVM_INCLUDE_DIRS}") >>   message("LLVM_DEFINITIONS=${LLVM_DEFINITIONS}") >> >> But I got several cmake error messages, here is my output : >> >>     -- Using LLVMConfig.cmake in: >> C:\\Luciad_src\\libs\\LLVM\\cmake\\modules >>     LLVM_INCLUDE_DIRS= >>     L...
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
...vm_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) target_include_directories(llvm_test PUBLIC ${LLVM_INCLUDE_DIRS}) target_compile_definitions(llvm_test PUBLIC ${LLVM_DEFINITIONS}) target_link_libraries(llvm_test ${llvm_libs}) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190918/268ef7c0/attachment.html>
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...IR will make find_package work, you need to # add it to CMAKE_MODULE_PATH if you want to include AddLLVM, e.g., if # you want to use add_llvm_loadable_module. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{LLVM_DIR}") find_package(LLVM REQUIRED CONFIG) include(AddLLVM) add_definitions(${LLVM_DEFINITIONS}) include_directories(${LLVM_INCLUDE_DIRS}) link_directories(${LLVM_LIBRARY_DIRS}) On Sun, Oct 9, 2016 at 2:03 PM, Timo Janssen via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi, > > > I am sorry but I really am not good with cmake yet. > > I made one mistake I...
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
...14) > > find_package(LLVM REQUIRED CONFIG) > llvm_map_components_to_libnames(llvm_libs support core irreader orcjit native) > > add_executable(llvm_test main.cpp) > target_include_directories(llvm_test PUBLIC ${LLVM_INCLUDE_DIRS}) > target_compile_definitions(llvm_test PUBLIC ${LLVM_DEFINITIONS}) > target_link_libraries(llvm_test ${llvm_libs}) > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > -------------- next part -------------- An HTM...
2012 Mar 13
2
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
...single CMakeLists.txt changes CMAKE_CXX_FLAGS, it will remain the same when it goes into another CMakeLists.txt. Inside the llvm-config's source folder, the CMakeLists.txt shows how its --cxxflags is set: set(CXX_FLGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${uppercase_ CMAKE_BUILD_TYPE}} ${LLVM_DEFINITIONS}") ... COMMAND echo s!@LLVM_CXXFLAGS@!${CXX_FLGS}! >> ${SEDSCRIPT_OBJPATH} and my LLVM_DEFINITIONS is: -D_GNU_SOURCE -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS I also use "make...
2012 Oct 05
4
[LLVMdev] problem with my LLVM pass
.../www.llvm.org/docs/CMake.html#developing-llvm-pass-out-of-source i follow the instruction from the link, and create in my ~/test/ directory the CMakeLists.txt with following content: $cat test/CMakeLists.txt find_package(LLVM) # Define add_llvm_* macro's. include(AddLLVM) add_definitions(${LLVM_DEFINITIONS}) include_directories(${LLVM_INCLUDE_DIRS}) link_directories(${LLVM_LIBRARY_DIRS}) add_subdirectory(Hello) ====== inside test/, i put Hello/ directory, copied from llvm-3.1.src/lib/Transforms/Hello. then inside test/, i tried to compile: test$ cmake . -- The C compiler identification is GNU...
2012 Jun 29
0
[LLVMdev] [cfe-dev] is configure+make dead yet?
...IRS ${LLVM_INSTALL_PREFIX}/include) -set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) + +get_filename_component(LLVM_CURRENT_LIST_DIR CMAKE_CURRENT_LIST_FILE PATH) +set(LLVM_INCLUDE_DIRS ${LLVM_CURRENT_LIST_DIR}/../../../include) +set(LLVM_LIBRARY_DIRS ${LLVM_CURRENT_LIST_DIR}/../../../lib) + set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") # We try to include using the current setting of CMAKE_MODULE_PATH, @@ -47,5 +50,7 @@ ${CMAKE_MODULE_PATH} "@LLVM_SOURCE_DIR@/cmake/modules") include( LLVM-Config ) + + set(LLVM_INCLUDE_DIRS ${LLVM...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
..., you need to > # add it to CMAKE_MODULE_PATH if you want to include AddLLVM, e.g., if > # you want to use add_llvm_loadable_module. > set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{LLVM_DIR}") > find_package(LLVM REQUIRED CONFIG) > include(AddLLVM) > add_definitions(${LLVM_DEFINITIONS}) > include_directories(${LLVM_INCLUDE_DIRS}) > link_directories(${LLVM_LIBRARY_DIRS}) > > > > On Sun, Oct 9, 2016 at 2:03 PM, Timo Janssen via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hi, >> >> >> I am sorry but I really am not...
2012 Jun 29
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
> > *hi,Óscar:* > * * > >Why? Please describe a case. > > >I need to do some futher experiment and to see whether I have been > wrong. > Since I touch this problem several months ago, so I did some test using the 3.2svn, the reason why uninstalled build 'cmake not work lies in set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@) set(LLVM_INCLUDE_DIRS
2016 Oct 09
3
Embedding llvm as a git submodule in Project
Hi all. I want to use llvm in my project and I want to make llvm a git submodule in my project. http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project At this in the documentation it claims to describe how to embed llvm into a project. I tried it that way but it doesn't work, because there isn't any findLLVM.cmake in the llvm/cmake/modules directory anymore (i don't
2012 Oct 18
0
[LLVMdev] problem with my LLVM pass
...tion file for > package LLVM. This error occurs when llvm-config is not in the path. I tried the same thing by copying the CMake snippets from the above page into a new file: $ cd test $ cat CMakeLists.txt find_package(LLVM) # Define add_llvm_* macro's. include(AddLLVM) add_definitions(${LLVM_DEFINITIONS}) include_directories(${LLVM_INCLUDE_DIRS}) link_directories(${LLVM_LIBRARY_DIRS}) add_subdirectory(<pass name>) add_llvm_loadable_module(LLVMPassname Pass.cpp ) $ cmake . Everything worked at this stage. But if I removed llvm-config from my PATH, I get the following error instea...
2011 Sep 20
2
[LLVMdev] [PATCH] llvm-config: Add support for LIBDIR_SUFFIX.
..._WIN32@) set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@) set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) -set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) +set(LLVM_LIBDIR_SUFFIX "@LLVM_LIBDIR_SUFFIX@") +set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib${LLVM_LIBDIR_SUFFIX}) set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") # We try to include using the current setting of CMAKE_MODULE_PATH, diff --git a/configure b/configure index c8ada54..20b6a4e 100755 --- a/configure +++ b/configure @@ -22349,9 +22349,11 @@ SHLIBPATH_VAR=$libltdl_cv_shli...
2020 May 15
2
Building A Project Against LLVM
...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_INCLUDE_DIRS}) add_definitions(${LLVM_DEFINITIONS}) add_executable(CBreakCompiler src/main.cpp src/Parser.cpp src/SourceTokenizer.cpp src/IRCompiler.cpp src/CompiledOutput.cpp) llvm_map_components_to_libnames(llvm_libs all) target_link_libraries(CBreakCompiler ${llvm_libs}) And a snippet from the cmake output correspond...
2011 Sep 20
0
[LLVMdev] [PATCH] llvm-config: Add support for LIBDIR_SUFFIX.
...STALL_PREFIX @LLVM_INSTALL_PREFIX@) > set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) > -set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) > +set(LLVM_LIBDIR_SUFFIX "@LLVM_LIBDIR_SUFFIX@") > +set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib${LLVM_LIBDIR_SUFFIX}) > set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") > > # We try to include using the current setting of CMAKE_MODULE_PATH, > diff --git a/configure b/configure > index c8ada54..20b6a4e 100755 > --- a/configure > +++ b/configure > @@ -22349,9 +22349,11...
2012 Jun 29
2
[LLVMdev] [cfe-dev] is configure+make dead yet?
...CMAKE_CURRENT_LIST_FILE PATH) > +set(LLVM_INCLUDE_DIRS ${LLVM_CURRENT_LIST_DIR}/../../../include) > +set(LLVM_LIBRARY_DIRS ${LLVM_CURRENT_LIST_DIR}/../../../lib) > + What about LLVM_TOOLS_BINARY_DIR ? Have you checked that CMAKE_CURRENT_LIST_FILE is available for CMake 2.8.0 ? > set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") > > # We try to include using the current setting of CMAKE_MODULE_PATH, > @@ -47,5 +50,7 @@ > ${CMAKE_MODULE_PATH} > "@LLVM_SOURCE_DIR@/cmake/modules") > include( LLVM-Config ) >...
2020 May 16
2
Building A Project Against LLVM
...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_INCLUDE_DIRS}) > add_definitions(${LLVM_DEFINITIONS}) > > add_executable(CBreakCompiler > src/main.cpp > src/Parser.cpp > src/SourceTokenizer.cpp > src/IRCompiler.cpp > src/CompiledOutput.cpp) > > llvm_map_components_to_libnames(llvm_libs all) > target_link_libraries(CBreakCompiler ${llvm_libs})...