[llvm-dev] EngineBuilder(std::move(Owner)).create() return null

Yafei Liu via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 17 20:04:07 PDT 2019


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_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>


More information about the llvm-dev mailing list