From 766f32331febd4a3c5458ff786d52a3252d7fd7c Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 8 Jun 2024 00:52:12 +0000 Subject: [PATCH] Build libclang-cpp.so separately to avoid OOM errors We were running out of memory linking this on the ppc64le COPR builders. --- build.spec.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.spec.inc b/build.spec.inc index 0e6db0f..e447682 100644 --- a/build.spec.inc +++ b/build.spec.inc @@ -203,6 +203,10 @@ cd llvm # builders without having to artificially limit the number of concurrent jobs. %cmake_build --target LLVM +# Also build libclang-cpp.so separately to avoid OOM errors. +# This is to fix occasional OOM errors on the ppc64le COPR builders. +%cmake_build --target libclang-cpp.so + %cmake_build # If we don't build the runtimes target here, we'll have to wait for the %check