Disable LTO on riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-11-27 19:27:36 +02:00
parent fd8dee1228
commit 3784a10056
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ OpenMP regression tests
%build
%ifarch riscv64
%define _lto_cflags %{nil}
%endif
%cmake -GNinja \
-DLIBOMP_INSTALL_ALIASES=OFF \
-DCMAKE_MODULE_PATH=%{_libdir}/cmake/llvm \