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:
Bertrand Bellenot 2015-02-25 11:14:36 +01:00 committed by sftnight
parent 6383df2174
commit c2224aeff7

View File

@ -496,6 +496,7 @@ namespace {
// Initialize the llvm library.
llvm::InitializeNativeTarget();
llvm::InitializeNativeTargetAsmParser();
llvm::InitializeNativeTargetAsmPrinter();
llvm::SmallString<512> resource_path;
if (llvmdir) {