Only use cet-report=error on x86_64

i386 CET support has been removed from glibc. Only check it for
x86_64.

This is a cherry-pick of fefb87d583
This commit is contained in:
Nikita Popov 2024-01-16 09:36:17 +01:00 committed by Konrad Kleine
parent eb12c13273
commit d168c1664f

View file

@ -189,7 +189,9 @@ cd llvm
-DLLVM_INSTALL_SPHINX_HTML_DIR=%{_pkgdocdir}/html \
-DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3 \
-DLLVM_INCLUDE_BENCHMARKS=OFF \
%ifarch x86_64
-DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error" \
%endif
%if %{without snapshot_build}
-DLLVM_UNITTEST_LINK_FLAGS="-Wl,-plugin-opt=O0"
%endif