Don't set LLVM_UNITTEST_LINK_FLAGS for snapshot builds

Snapshot builds don't use LTO, so we should not set these linker
flags either.
This commit is contained in:
Nikita Popov 2023-08-14 08:40:40 +02:00
parent 9c4442b779
commit 2508552b6b

View file

@ -351,7 +351,9 @@ export ASMFLAGS="%{build_cflags}"
-DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3 \ -DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3 \
-DLLVM_INCLUDE_BENCHMARKS=OFF \ -DLLVM_INCLUDE_BENCHMARKS=OFF \
-DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error" \ -DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error" \
%if %{without snapshot_build}
-DLLVM_UNITTEST_LINK_FLAGS="-Wl,-plugin-opt=O0" -DLLVM_UNITTEST_LINK_FLAGS="-Wl,-plugin-opt=O0"
%endif
# Build libLLVM.so first. This ensures that when libLLVM.so is linking, there # Build libLLVM.so first. This ensures that when libLLVM.so is linking, there
# are no other compile jobs running. This will help reduce OOM errors on the # are no other compile jobs running. This will help reduce OOM errors on the