From c2224aeff71ca5b6a15ae545d491d2e024fcd513 Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot Date: Wed, 25 Feb 2015 11:14:36 +0100 Subject: [PATCH] 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(); --- lib/Interpreter/CIFactory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Interpreter/CIFactory.cpp b/lib/Interpreter/CIFactory.cpp index 4b5b6fa8..b3b896c9 100644 --- a/lib/Interpreter/CIFactory.cpp +++ b/lib/Interpreter/CIFactory.cpp @@ -496,6 +496,7 @@ namespace { // Initialize the llvm library. llvm::InitializeNativeTarget(); + llvm::InitializeNativeTargetAsmParser(); llvm::InitializeNativeTargetAsmPrinter(); llvm::SmallString<512> resource_path; if (llvmdir) {