From b9d36676ebc9c395961faa79eb495642c046b4d9 Mon Sep 17 00:00:00 2001 From: zhoujing Date: Mon, 18 Sep 2023 16:50:38 +0800 Subject: [PATCH] Support for building with clang --- mozjs91.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mozjs91.spec b/mozjs91.spec index 10f075a..2d03d57 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 -- Gitee