Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye116477 committed Nov 12, 2024
1 parent 8bd7636 commit eaa271f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions waterfox/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,21 @@ export NASM=/usr/lib/nasm-mozilla/bin/nasm
fi

# For successfull LTO build, we need to use matching LLVM version
if test "$(lsb_release -sc)" = "focal" || test "$(lsb_release -sc)" = "jammy" || test "$(lsb_release -sc)" = "buster" || test "$(lsb_release -sc)" = "bullseye" || test "$(lsb_release -sc)" = "bookworm"; then
if test `lsb_release -sc` = "focal" || test `lsb_release -sc` = "jammy" || test `lsb_release -sc` = "buster" || test `lsb_release -sc` = "bullseye" || test `lsb_release -sc` = "bookworm"; then
export PATH=/usr/lib/llvm-19/bin/:$PATH
fi

export MOZBUILD_STATE_PATH="$pwd/debian/.mozbuild"
echo $PATH

export MOZBUILD_STATE_PATH="$(pwd)"/debian/.mozbuild

export CC=clang
export CXX=clang++
export AR=llvm-ar
export NM=llvm-nm
export RANLIB=llvm-ranlib
export LLVM_PROFDATA=llvm-profdata
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
export GEN_PGO=1
if [ -z "$XDG_RUNTIME_DIR" ]; then
XDG_RUNTIME_DIR=/run/user/$(id -u)
Expand Down
4 changes: 2 additions & 2 deletions waterfox/rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export WF_VERSION=$(shell awk -F ': ' '/^version:/ {print $$2; exit}' ../SOURCES
export TODAY_DATE=$(shell date +%Y-%m-%d)
export LC_ALL=C.UTF-8
export JOBS=$(shell echo $(shell grep -c ^processor /proc/cpuinfo)\/2 | bc)
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system
export MOZBUILD_STATE_PATH=$(shell pwd)/debian/.mozbuild
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
export MOZBUILD_STATE_PATH="$(shell pwd)"/debian/.mozbuild
export DEB_BUILD_MAINT_OPTIONS = optimize=-lto
include /usr/share/dpkg/buildflags.mk
export CXXFLAGS CFLAGS LDFLAGS
Expand Down

0 comments on commit eaa271f

Please sign in to comment.