Disable LTO on riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
ff665e105a
commit
b8757eaab0
|
@ -1,8 +1,6 @@
|
||||||
# If you need to bootstrap this, turn this on.
|
# If you need to bootstrap this, turn this on.
|
||||||
# Otherwise, you have a loop with libcxxabi
|
# Otherwise, you have a loop with libcxxabi
|
||||||
%ifnarch riscv64
|
|
||||||
%global toolchain clang
|
%global toolchain clang
|
||||||
%endif
|
|
||||||
%global bootstrap 0
|
%global bootstrap 0
|
||||||
|
|
||||||
%global libcxx_version 15.0.4
|
%global libcxx_version 15.0.4
|
||||||
|
@ -71,6 +69,10 @@ Summary: Static libraries for libcxx
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
%ifarch riscv64
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
# The location of this header changed.
|
# The location of this header changed.
|
||||||
if [[ -f %{_includedir}/cxxabi.h ]]; then
|
if [[ -f %{_includedir}/cxxabi.h ]]; then
|
||||||
LIBCXX_ABI_PATH=%{_includedir}
|
LIBCXX_ABI_PATH=%{_includedir}
|
||||||
|
@ -163,7 +165,7 @@ install -m 0644 src/include/*.h %{buildroot}%{_includedir}/libcxx-internal/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Nov 27 2022 David Abdurachmanov <davidlt@rivosinc.com> - 15.0.4-1.0.riscv664
|
* Sun Nov 27 2022 David Abdurachmanov <davidlt@rivosinc.com> - 15.0.4-1.0.riscv664
|
||||||
- Build for riscv64
|
- Build for riscv64 (disable LTO)
|
||||||
|
|
||||||
* Tue Nov 08 2022 Nikita Popov <npopov@redhat.com> - 15.0.4-1
|
* Tue Nov 08 2022 Nikita Popov <npopov@redhat.com> - 15.0.4-1
|
||||||
- Update to LLVM 15.0.4
|
- Update to LLVM 15.0.4
|
||||||
|
|
Loading…
Reference in New Issue