Open mingodad opened 2 years ago
For Arch linux users working with the aur/c2ffi-git
package, this can be applied during the PKGBUILD.
Add the initial comments patch to src/llvm-15.patch
, and apply this patch
diff --git a/PKGBUILD b/PKGBUILD
index 8154a1c..b574cd7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -40,6 +40,10 @@ build() {
make
}
+prepare() {
+ patch --directory="c2ffi" --forward --strip=1 --input="${srcdir}/llvm-15.patch"
+}
+
package() {
cd c2ffi
make DESTDIR="$pkgdir/" install
Here are the fixes to build with clang-15: