Enable asm parser in cling
Use PROJECT_SOURCE_DIR (full path to the root of the project source directory) instead of CMAKE_SOURCE_DIR (the directory from which cmake was started) in order to properly find AsmParser/CMakeLists.txt and call llvm::InitializeNativeTargetAsmParser();
This commit is contained in:
parent
6383df2174
commit
c2224aeff7
@ -496,6 +496,7 @@ namespace {
|
||||
|
||||
// Initialize the llvm library.
|
||||
llvm::InitializeNativeTarget();
|
||||
llvm::InitializeNativeTargetAsmParser();
|
||||
llvm::InitializeNativeTargetAsmPrinter();
|
||||
llvm::SmallString<512> resource_path;
|
||||
if (llvmdir) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user