From 724af11e097abc19eb946aa76e58bfdc6953cb14 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 16 Jul 2024 10:45:51 +0000 Subject: [PATCH] Undefine __cmake_in_source_build on RHEL 8 So we get the same behavior as in newer versions. --- build.spec.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.spec.inc b/build.spec.inc index a7dc2d7..a579317 100644 --- a/build.spec.inc +++ b/build.spec.inc @@ -31,6 +31,10 @@ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:`pwd`/llvm/%{_vpath_builddir}/%{_lib} cd llvm +%if 0%{?rhel} == 8 +%undefine __cmake_in_source_build +%endif + # TODO(kkleine): Follow more closely the Distribution guidelines found here: https://llvm.org/docs/BuildingADistribution.html # force off shared libs as cmake macros turns it on. # TODO: Disable LLVM_UNREACHABLE_OPTIMIZE.