mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-10-19 02:35:42 +00:00
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:
parent
9c4442b779
commit
2508552b6b
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue