[packages/firefox] - let's try clang...
baggins
baggins at pld-linux.org
Wed Jun 5 00:57:26 CEST 2019
commit ba0dd188fc49771880060e72287eb74e3a04fad4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Jun 5 00:57:12 2019 +0200
- let's try clang...
firefox.spec | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/firefox.spec b/firefox.spec
index 226a3b8..406ff61 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -15,7 +15,7 @@
%bcond_without system_icu # build without system ICU
%bcond_with system_cairo # build with system cairo (not supported in 60.0)
%bcond_with system_libvpx # build with system libvpx (67.0 does not build with libvpx 1.8)
-%bcond_with clang # build using Clang/LLVM
+%bcond_without clang # build using Clang/LLVM
%bcond_with legacy_exts # build with legacy extensions support
%if %{with lto}
@@ -2129,6 +2129,10 @@ cat << 'EOF' > .mozconfig
%if %{with clang}
export CC="clang"
export CXX="clang++"
+export LLVM_PROFDATA="llvm-profdata"
+export AR="llvm-ar"
+export NM="llvm-nm"
+export RANLIB="llvm-ranlib"
%else
export CC="%{__cc}"
export CXX="%{__cxx}"
@@ -2176,6 +2180,7 @@ ac_add_options --disable-elf-hack
%if %{with lto}
ac_add_options --enable-lto
%endif
+%{?with_clang:ac_add_options --enable-linker=lld}
ac_add_options --enable-readline
%{?with_shared_js:ac_add_options --enable-shared-js}
ac_add_options --enable-startup-notification
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/firefox.git/commitdiff/ba0dd188fc49771880060e72287eb74e3a04fad4
More information about the pld-cvs-commit
mailing list