From 032dbfa48620894f97e2ae5b3b2a742f9197f925 Mon Sep 17 00:00:00 2001 From: hawkeye116477 Date: Sat, 20 Jul 2024 15:01:20 +0200 Subject: [PATCH] Try to fix Ubuntu 24 build https://github.com/yuk7/ArchWSL/issues/341 --- waterfox-kde/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/waterfox-kde/build.sh b/waterfox-kde/build.sh index 2674fbc..a4f3872 100755 --- a/waterfox-kde/build.sh +++ b/waterfox-kde/build.sh @@ -30,7 +30,6 @@ if test `lsb_release -sc` = "bionic" || test `lsb_release -sc` = "buster" || tes export PATH=/usr/lib/llvm-15/bin/:$PATH fi -export XDG_RUNTIME_DIR=/run/user/$(id -u) export CC=clang export CXX=clang++ export AR=llvm-ar @@ -39,6 +38,12 @@ export RANLIB=llvm-ranlib export LLVM_PROFDATA=llvm-profdata export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system export GEN_PGO=1 +if [ -z "$XDG_RUNTIME_DIR" ]; then + export XDG_RUNTIME_DIR=/run/user/$(id -u) +fi +export LIBGL_ALWAYS_INDIRECT=0 +export GALLIUM_DRIVER=llvmpipe + ./mach build echo "Profiling instrumented browser..."