From 04ad768cc46c2d79bda9651652851f0f6944e12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 30 Oct 2016 18:54:27 +0100 Subject: [PATCH] [clang_delta] Link against LLVMSupport to fix missing APInt methods Link clang_delta against LLVMSupport in order to fix the following link failure: /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/clang_delta.dir/ReplaceArrayIndexVar.cpp.o: undefined reference to symbol '_ZN4llvm5APInt12initSlowCaseERKS0_' /usr/lib64/libLLVMSupport.so.40: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status --- clang_delta/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/clang_delta/CMakeLists.txt b/clang_delta/CMakeLists.txt index fde758fd..43785fe3 100644 --- a/clang_delta/CMakeLists.txt +++ b/clang_delta/CMakeLists.txt @@ -35,6 +35,7 @@ llvm_map_components_to_libnames(LLVM_LIBS mcparser option profiledata + support ) set(CLANG_LIBS