diff options
author | Martin Stransky <stransky@redhat.com> | 2018-11-13 23:47:50 +0100 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2018-11-13 23:47:50 +0100 |
commit | 0df34892083b8640cba9a456ce9f724ee2aa215d (patch) | |
tree | 696bc1ae742870ba14ba4a1e017d663cfd14f212 | |
parent | Build with clang/llvm (diff) | |
download | librewolf-fedora-ff-0df34892083b8640cba9a456ce9f724ee2aa215d.tar.gz librewolf-fedora-ff-0df34892083b8640cba9a456ce9f724ee2aa215d.tar.bz2 librewolf-fedora-ff-0df34892083b8640cba9a456ce9f724ee2aa215d.zip |
Added an option to build with clang/llvm.
-rw-r--r-- | firefox-mozconfig | 2 | ||||
-rw-r--r-- | firefox.spec | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/firefox-mozconfig b/firefox-mozconfig index a64bb3d..44fe32c 100644 --- a/firefox-mozconfig +++ b/firefox-mozconfig @@ -15,8 +15,8 @@ ac_add_options --enable-pulseaudio ac_add_options --with-system-icu ac_add_options --with-mozilla-api-keyfile=../mozilla-api-key ac_add_options --with-google-api-keyfile=../google-api-key -ac_add_options --enable-release ac_add_options --enable-pie +ac_add_options --enable-release ac_add_options --update-channel=release # Workaround for mozbz#1341234 ac_add_options BINDGEN_CFLAGS="$(pkg-config nspr pixman-1 --cflags)" diff --git a/firefox.spec b/firefox.spec index 85b6687..31997c1 100644 --- a/firefox.spec +++ b/firefox.spec @@ -6,7 +6,7 @@ %global system_libicu 0 %global hardened_build 1 %global system_jpeg 1 -%global build_with_clang 1 +%global build_with_clang 0 %if 0%{?fedora} > 29 %global wayland_backend_default 1 @@ -199,6 +199,9 @@ BuildRequires: llvm BuildRequires: llvm-devel BuildRequires: clang BuildRequires: clang-libs +%if %{?build_with_clang} +BuildRequires: lld +%endif %if 0%{?fedora} > 27 BuildRequires: pipewire-devel %endif @@ -561,7 +564,11 @@ export LIBDIR='%{_libdir}' %if %{?build_with_clang} export CC=clang export CXX=clang++ -export LINKER=lld-link +export LLVM_PROFDATA="llvm-profdata" +export AR="llvm-ar" +export NM="llvm-nm" +export RANLIB="llvm-ranlib" +echo "ac_add_options --enable-linker=lld" >> .mozconfig %endif MOZ_SMP_FLAGS=-j1 @@ -920,7 +927,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog * Tue Nov 13 2018 Martin Stransky <stransky@redhat.com> - 63.0.1-6 -- Build with clang/llvm +- Added an option to build with clang/llvm. * Tue Nov 6 2018 Martin Stransky <stransky@redhat.com> - 63.0.1-5 - Added fix for mozbz#1502457- disable Contextual Feature |