diff --git a/mozjs91.spec b/mozjs91.spec index 10f075a22d1a7257bc294d96bc4811079930f3b7..2d03d57a2a34350a21554466a62415b077a7f8f2 100644 --- a/mozjs91.spec +++ b/mozjs91.spec @@ -1,7 +1,11 @@ %define _lto_cflags %{nil} # upstream default is clang (to use gcc for large parts set to 0) +%if "%toolchain" == "clang" +%define clang_build 1 +%else %define clang_build 0 +%endif %global major 91 # LTO - Enable in Release builds, but consider disabling for development as it increases compile time @@ -12,7 +16,7 @@ # Big endian platforms Name: mozjs%{major} Version: 91.6.0 -Release: 3 +Release: 4 Summary: SpiderMonkey JavaScript library License: MPL-2.0 Group: System/Libraries @@ -130,7 +134,7 @@ case `uname -i` in i386 | sparc ) wordsize="32" ;; - x86_64 | sparc64 ) + x86_64 | sparc64 | aarch64) wordsize="64" ;; *) @@ -207,6 +211,9 @@ popd %{_includedir}/mozjs-%{major}/ %changelog +* Mon Sep 18 2023 zhoujing - 91.6.0-4 +- Support for building with clang + * Thu Dec 15 2022 liuyu - 91.6.0-3 - support loongarch64 in spidermonkey