From c3b03e08625bcdc52b16d12165db6213f67425d7 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Tue, 5 Dec 2023 10:21:26 +0200 Subject: [PATCH] Add support for riscv64 Signed-off-by: David Abdurachmanov --- known_failures.txt | 2 ++ mozjs102.spec | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/known_failures.txt b/known_failures.txt index eca36e0..3f8eabb 100644 --- a/known_failures.txt +++ b/known_failures.txt @@ -105,3 +105,5 @@ test262/intl402/DateTimeFormat/prototype/formatRangeToParts/en-US.js test262/intl402/DateTimeFormat/prototype/formatRangeToParts/fractionalSecondDigits.js test262/intl402/Locale/constructor-non-iana-canon.js test262/intl402/Locale/prototype/minimize/removing-likely-subtags-first-adds-likely-subtags.js +non262/Array/regress-157652.js +non262/regress/regress-422348.js diff --git a/mozjs102.spec b/mozjs102.spec index b0e35b0..1c47c16 100644 --- a/mozjs102.spec +++ b/mozjs102.spec @@ -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 @@ -19,7 +27,7 @@ Name: mozjs%{major} Version: 102.15.1 -Release: %autorelease +Release: %autorelease -e 0.riscv64 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