Undefine __cmake_in_source_build on RHEL 8

So we get the same behavior as in newer versions.
This commit is contained in:
Nikita Popov 2024-07-16 10:45:51 +00:00 committed by Timm Bäder
parent 961276e5f3
commit 724af11e09

View file

@ -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.