From 2e5e0ec30a64decf5019cadd66003fa2fc00dced Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 11 Apr 2020 00:00:01 +0200 Subject: [PATCH] Also ship polly libs in libclang-common-10-dev. Fixes bug #44870 (upstream) --- debian/changelog | 3 ++- debian/libclang-common-X.Y-dev.install.in | 2 +- debian/qualify-clang.sh | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 226a7d3c..88eebb8b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ llvm-toolchain-10 (1:10.0.0-4) unstable; urgency=medium - * Also ship polly libs. Fixes bug #44870 (upstream) + * Also ship polly libs in libclang-common-10-dev. + Fixes bug #44870 (upstream) -- Sylvestre Ledru Fri, 10 Apr 2020 10:27:41 +0200 diff --git a/debian/libclang-common-X.Y-dev.install.in b/debian/libclang-common-X.Y-dev.install.in index 4514f2cd..f391eaf4 100644 --- a/debian/libclang-common-X.Y-dev.install.in +++ b/debian/libclang-common-X.Y-dev.install.in @@ -4,4 +4,4 @@ usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/lib usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/*.txt usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/share/*.txt - +usr/lib/llvm-@LLVM_VERSION@/lib/libPolly*.a diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index d229f073..72afac9b 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -1053,6 +1053,29 @@ LLVM_PROFILE_FILE="foo-%p.profraw" ./foo llvm-profdata-$VERSION merge -output=foo.profdata foo-*.profraw clang++-$VERSION -O2 -fprofile-instr-use=foo.profdata foo.cc -o foo +# https://bugs.llvm.org/show_bug.cgi?id=44870 +cat < foo.cpp +#include + +using namespace clang; + +int main() { + DiagnosticsEngine* diags; + HeaderSearchOptions* hsOpts; + CodeGenOptions* cgOpts; + TargetOptions* tOpts; + LangOptions* lOpts; + llvm::DataLayout* tDesc; + llvm::Module* m; + BackendAction* action; + std::unique_ptr AsmOutStream; + + EmitBackendOutput(*diags, *hsOpts, *cgOpts, *tOpts, *lOpts, *tDesc, m, *action, std::move(AsmOutStream)); +} +EOF +clang++-$VERSION foo.cpp -o test -lclangBasic -lclangCodeGen -lclangDriver -lclangFrontend -lclangFrontendTool -lclangCodeGen -lclangRewriteFrontend -lclangARCMigrate -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerCore -lclangCrossTU -lclangIndex -lclangFrontend -lclangDriver -lclangParse -lclangSerialization -lclangSema -lclangAnalysis -lclangEdit -lclangFormat -lclangToolingInclusions -lclangToolingCore -lclangRewrite -lclangASTMatchers -lclangAST -lclangLex -lclangBasic -ldl /usr/lib/llvm-10/lib/libLLVM-10.so -lclangCodeGen -lclangDriver -lclangFrontend -lclangFrontendTool -lclangRewriteFrontend -lclangARCMigrate -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerCore -lclangCrossTU -lclangIndex -lclangParse -lclangSerialization -lclangSema -lclangAnalysis -lclangEdit -lclangFormat -lclangToolingInclusions -lclangToolingCore -lclangRewrite -lclangASTMatchers -lclangAST -lclangLex -ldl -I /usr/lib/llvm-$VERSION/include/ -L/usr/lib/llvm-$VERSION/lib/ -lPolly -lPollyPPCG -lPollyISL + + if test ! -f /usr/bin/lldb-$VERSION; then echo "Install lldb-$VERSION"; exit -1;