diff options
author | Sam James <sam@gentoo.org> | 2021-12-14 08:22:09 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-14 08:22:26 +0000 |
commit | 4a53b08273b86eed76a989e647aecccfb485b2d4 (patch) | |
tree | b213755faa8710e7e6db681b5678674ca1c80516 /dev-util/clazy | |
parent | dev-java/aspectj: removed obsolete 1.9.6 (diff) | |
download | gentoo-4a53b08273b86eed76a989e647aecccfb485b2d4.tar.gz gentoo-4a53b08273b86eed76a989e647aecccfb485b2d4.tar.bz2 gentoo-4a53b08273b86eed76a989e647aecccfb485b2d4.zip |
dev-util/clazy: fix build with LLVM < 12
Upstream commit: 0ee1ed9ff1bd4cf2a49e1232696747f1898e2987
Closes: https://bugs.gentoo.org/829134
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/clazy')
-rw-r--r-- | dev-util/clazy/clazy-1.10-r2.ebuild | 1 | ||||
-rw-r--r-- | dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/dev-util/clazy/clazy-1.10-r2.ebuild b/dev-util/clazy/clazy-1.10-r2.ebuild index f482a18606ed..bcb85e9d4148 100644 --- a/dev-util/clazy/clazy-1.10-r2.ebuild +++ b/dev-util/clazy/clazy-1.10-r2.ebuild @@ -24,6 +24,7 @@ BDEPEND="test? ( ${PYTHON_DEPS} )" PATCHES=( "${FILESDIR}"/${P}-gcc-build.patch "${FILESDIR}"/${P}-use-c++17.patch + "${FILESDIR}"/${P}-llvm-earlier-than-12.patch ) llvm_check_deps() { diff --git a/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch b/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch new file mode 100644 index 000000000000..714d196b5fd9 --- /dev/null +++ b/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/829134 +https://invent.kde.org/sdk/clazy/-/commit/0ee1ed9ff1bd4cf2a49e1232696747f1898e2987.patch + +From: Allen Winter <allen.winter@kdab.com> +Date: Sat, 11 Dec 2021 14:57:52 -0500 +Subject: [PATCH] src/SourceCompatibilityHelpers.h - fix compile with LLVM<12 + +fix the GET_LEXER macro for LLVM versions less than 12 +--- a/src/SourceCompatibilityHelpers.h ++++ b/src/SourceCompatibilityHelpers.h +@@ -123,7 +123,7 @@ clang::Lexer(id, inputFile.getValue(), sm, lo) + + #else + #define GET_LEXER(id, inputFile, sm, lo) \ +-clang::Lexer(id, inputFile.getValue(), sm, lo) ++clang::Lexer(id, inputFile, sm, lo) + #endif + + inline bool isFinal(const clang::CXXRecordDecl *record) +GitLab |