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 nikic
parent 1dd985a086
commit c956fce064

View file

@ -31,6 +31,10 @@ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:`pwd`/llvm/%{_vpath_builddir}/%{_lib}
cd llvm 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 # 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. # force off shared libs as cmake macros turns it on.
# TODO: Disable LLVM_UNREACHABLE_OPTIMIZE. # TODO: Disable LLVM_UNREACHABLE_OPTIMIZE.