search for: cmake_cxx_standard

Displaying 10 results from an estimated 10 matches for "cmake_cxx_standard".

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) target_include_directories(llvm_test PUBLIC ${LLVM_INCLUDE_DIRS}) target_compile_definitions(llvm_test PUBLIC ${LLVM_DEFINITIONS}) target_link_l...
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
...at lists.llvm.org> 写道: > > 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) > target_include_directories(llvm_test PUBLIC ${LLVM_INCLUDE_DIRS}) > target_compile_definitions(llvm_test PUBLIC $...
2016 Oct 20
2
Leveraging newer CMake features for Language standards
...CMake has the CXX_STANDARD and CXX_STANDARD_REQUIRED target properties. If set appropriately on a given target then the approiate compiler flags for that language standard as known by CMake with be applied. You can set the global default for this by defining in teh cop level CMakeLists.txt: set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED True) Unrelated but in a similar situation is the -fPIC flag. The POSITION_INDEPENDENT_CODE target proeprty is available, which can be initialized toa default value with: set(CMAKE_POSITION_INDEPENDENT_CODE True) What are peoples thoughts about reducing Handl...
2020 May 15
2
Building A Project Against LLVM
...t 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_INCLUDE_DIRS}) add_definitio...
2020 May 16
2
Building A Project Against LLVM
...o 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_direc...
2020 May 20
3
10.0.1-rc1 release has been tagged
...txt --- llvm-project-10.0.1rc1/llvm/tools/llvm-config/CMakeLists.txt 2020-05-19 21:16:37.000000000 +0200 +++ llvm-project/llvm/tools/llvm-config/CMakeLists.txt 2020-05-20 18:28:03.793999462 +0200 @@ -49,7 +49,7 @@ set(LLVM_CFLAGS "${LLVM_C_STD_FLAG} ${LL set(LLVM_CXXFLAGS "${CMAKE_CXX${CMAKE_CXX_STANDARD}_STANDARD_COMPILE_OPTION} ${LLVM_CXX_STDLIB_FLAG} ${COMPILE_FLAGS} ${LLVM_DEFINITIONS}") set(LLVM_BUILD_SYSTEM cmake) set(LLVM_HAS_RTTI ${LLVM_CONFIG_HAS_RTTI}) -set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}") +set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR...
2020 May 16
2
Building A Project Against LLVM
...nstall" 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 LLVMCon...
2020 May 21
2
10.0.1-rc1 release has been tagged
...ists.txt > > 2020-05-19 21:16:37.000000000 +0200 > > +++ llvm-project/llvm/tools/llvm-config/CMakeLists.txt 2020-05-20 > > 18:28:03.793999462 +0200 > > @@ -49,7 +49,7 @@ set(LLVM_CFLAGS "${LLVM_C_STD_FLAG} ${LL > > set(LLVM_CXXFLAGS > > "${CMAKE_CXX${CMAKE_CXX_STANDARD}_STANDARD_COMPILE_OPTION} > > ${LLVM_CXX_STDLIB_FLAG} ${COMPILE_FLAGS} ${LLVM_DEFINITIONS}") > > set(LLVM_BUILD_SYSTEM cmake) > > set(LLVM_HAS_RTTI ${LLVM_CONFIG_HAS_RTTI}) > > -set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}") > >...
2020 May 20
3
10.0.1-rc1 release has been tagged
Hi Tom, thanks and congrats for LLVM 10.0.1-rc1 release. [1] shows 2 assets. 10.0.0 RCs had a lot of more assets. I am missing the llvm-project-10.0.1rc1.tar.xz tarball. Will you provide them later or is there a new development/workflow decision I do not know of? BTW, the source zip and tar.gz tarballs show no sizes. I am using Mobile LTE/UMTS to download stuff from the Internet. For now I
2020 Nov 05
1
How to use mainline clang/llvm with CMake
...s any other mailing list for such. Kindly point me to such a list in such case. I had built mainline CLang/LLVM on OSX and tried to use it with CMake. I had override following variables in CMake: CMAKE_CXX_COMPILER=${LLVM_INSTALL_PATH}/_install/Toolchains/LLVM12.0.0git.xctoolchain/usr/bin/clang++ CMAKE_CXX_STANDARD_LIBRARIES=${LLVM_INSTALL_PATH}/_install/Toolchains/LLVM12.0.0git.xctoolchain/usr/lib CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES=${LLVM_INSTALL_PATH}/_install/Toolchains/LLVM12.0.0git.xctoolchain/usr/include/c++/v1 Though the compilation works, the link stage fails, as I couldn't set the path to ne...