Skip to content

Commit

Permalink
librewolf: build with llvm 19
Browse files Browse the repository at this point in the history
  • Loading branch information
index-0 committed Dec 4, 2024
1 parent a4b1dda commit 0099dc1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion srcpkgs/librewolf/template
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ checksum=2090c835346ce395403007cb2d4982c12abc2e76df4bbc0083a60ae50a28c4d7

lib32disabled=yes

_llvmver=19
hostmakedepends="autoconf213 unzip zip pkg-config perl python yasm rust
cargo llvm18 clang18 lld18 nodejs cbindgen nasm which tar"
cargo llvm${_llvmver} clang${_llvmver} lld${_llvmver} nodejs cbindgen nasm which tar"
makedepends="nss-devel libjpeg-turbo-devel gtk+3-devel icu-devel
pixman-devel libevent-devel libnotify-devel libvpx-devel libwebp-devel
libXrender-devel libXcomposite-devel libSM-devel libXt-devel rust-std
Expand Down Expand Up @@ -74,6 +75,8 @@ do_build() {
exec clang \
--target="${XBPS_CROSS_TRIPLET}" \
--sysroot="${XBPS_CROSS_BASE}" \
--gcc-toolchain=/usr \
-isystem "${XBPS_CROSS_BASE}/usr/include" \
"\$@"
!

Expand All @@ -82,6 +85,11 @@ do_build() {
exec clang++ \
--target="${XBPS_CROSS_TRIPLET}" \
--sysroot="${XBPS_CROSS_BASE}" \
--gcc-toolchain=/usr \
-isystem "${XBPS_CROSS_BASE}/usr/include/c++/${gcc_version%.*}" \
-isystem "${XBPS_CROSS_BASE}/usr/include/c++/${gcc_version%.*}/${XBPS_CROSS_TRIPLET}" \
-isystem "${XBPS_CROSS_BASE}/usr/include/c++/${gcc_version%.*}/backward" \
-isystem "${XBPS_CROSS_BASE}/usr/include" \
"\$@"
!

Expand Down

0 comments on commit 0099dc1

Please sign in to comment.