aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lldb/cmake-include-ClangConfig.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-05-07 21:38:57 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-07 21:45:16 +0200
commit6f67bc92d117872255ea28559a1c4cded72757d1 (patch)
tree4d1312b650041a7b46f5d56b7bffd5e8fddcb2de /testing/lldb/cmake-include-ClangConfig.patch
parent26741307e7dce9d4e1c4c7f0682fc6259f1abcca (diff)
downloadaports-6f67bc92d117872255ea28559a1c4cded72757d1.tar.bz2
aports-6f67bc92d117872255ea28559a1c4cded72757d1.tar.xz
testing/lldb: upgrade to 5.0.1
Diffstat (limited to 'testing/lldb/cmake-include-ClangConfig.patch')
-rw-r--r--testing/lldb/cmake-include-ClangConfig.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/lldb/cmake-include-ClangConfig.patch b/testing/lldb/cmake-include-ClangConfig.patch
new file mode 100644
index 0000000000..96fd332b64
--- /dev/null
+++ b/testing/lldb/cmake-include-ClangConfig.patch
@@ -0,0 +1,23 @@
+This fixes the following build error:
+
+ [869/876] Linking CXX shared library lib/liblldb.so.5.0.0
+ FAILED: lib/liblldb.so.5.0.0
+ ...
+ /usr/bin/../lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../libclangSema.a(SemaExprObjC.cpp.o): In function `applyCocoaAPICheck(clang::Sema&, clang::ObjCMessageExpr const*, unsigned int, bool (*)(clang::ObjCMessageExpr const*, clang::NSAPI const&, clang::edit::Commit&)) [clone .constprop.696]':
+ SemaExprObjC.cpp:(.text._ZL18applyCocoaAPICheckRN5clang4SemaEPKNS_15ObjCMessageExprEjPFbS4_RKNS_5NSAPIERNS_4edit6CommitEE.constprop.696+0x13c): undefined reference to `clang::edit::rewriteObjCRedundantCallWithLiteral(clang::ObjCMessageExpr const*, clang::NSAPI const&, clang::edit::Commit&)'
+ /usr/bin/../lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../libclangSema.a(SemaExprObjC.cpp.o): In function `(anonymous namespace)::ARCCastChecker::VisitCallExpr(clang::CallExpr*)':
+ SemaExprObjC.cpp:(.text._ZN12_GLOBAL__N_114ARCCastChecker13VisitCallExprEPN5clang8CallExprE+0x12e): undefined reference to `clang::ento::coreFoundation::followsCreateRule(clang::FunctionDecl const*)'
+ clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
+
+See https://github.com/alpinelinux/aports/pull/2342 for more information.
+
+--- a/cmake/modules/LLDBStandalone.cmake
++++ b/cmake/modules/LLDBStandalone.cmake
+@@ -100,6 +100,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
+
+ # Import CMake library targets from LLVM and Clang.
+ include("${LLVM_OBJ_ROOT}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm/LLVMConfig.cmake")
++ include("/usr/lib/cmake/clang/ClangConfig.cmake")
+ # cmake/clang/ClangConfig.cmake is not created when LLVM and Cland are built together.
+ if (EXISTS "${LLVM_OBJ_ROOT}/lib${LLVM_LIBDIR_SUFFIX}/cmake/clang/ClangConfig.cmake")
+ include("${LLVM_OBJ_ROOT}/lib${LLVM_LIBDIR_SUFFIX}/cmake/clang/ClangConfig.cmake")