Compare commits

...

2 Commits

Author SHA1 Message Date
7b50eb6b13
Disable LTO on riscv64
/usr/bin/ld: /tmp/ccLUv2b5.ltrans124.ltrans.o: warning: relocation against `_ZL13TlsJitContext.lto_priv.0' in read-only section `.text._ZN2js4wasm12LazyStubTier10createManyERKN7mozilla6VectorIjLm8ENS_17SystemAllocPolicyEEERKNS0_8CodeTierEbPm.isra.0'
/usr/bin/ld: read-only segment has dynamic relocations

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-04-06 13:48:10 +03:00
841d7fa4aa
Add support for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-04-06 10:43:20 +03:00
2 changed files with 14 additions and 1 deletions

View File

@ -100,3 +100,5 @@ test262/intl402/DateTimeFormat/prototype/formatRange/en-US.js
test262/intl402/DateTimeFormat/prototype/formatRange/fractionalSecondDigits.js
test262/intl402/DateTimeFormat/prototype/formatRangeToParts/en-US.js
test262/intl402/DateTimeFormat/prototype/formatRangeToParts/fractionalSecondDigits.js
non262/Array/regress-157652.js
non262/regress/regress-422348.js

View File

@ -1,10 +1,18 @@
%global major 102
# LTO - Enable in Release builds, but consider disabling for development as it increases compile time
%ifnarch riscv64
%global build_with_lto 1
%else
%global build_with_lto 0
%endif
# Require tests to pass?
%ifnarch riscv64
%global require_tests 1
%else
%global require_tests 0
%endif
%if 0%{?build_with_lto}
# LTO is the default
@ -24,7 +32,7 @@
Name: mozjs%{major}
Version: 102.9.0
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
Summary: SpiderMonkey JavaScript library
License: MPL-2.0 AND Apache-2.0 AND BSD-3-Clause AND BSD-2-Clause AND MIT AND GPL-3.0-or-later
@ -230,6 +238,9 @@ ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so
%{_includedir}/mozjs-%{major}/
%changelog
* Thu Apr 06 2023 David Abdurachmanov <davidlt@rivosinc.com> - 102.9.0-1.0.riscv64
- Add support for riscv64
* Mon Mar 13 2023 Frantisek Zatloukal <fzatlouk@redhat.com> - 102.9.0-1
- mozjs102-102.9.0 (fixes RHBZ#2177727)