Date: Thursday, November 17, 2022 @ 18:48:31
Author: heftig
Revision: 1349395
14.0.6-3: enable debug
Modified:
lib32-llvm/trunk/PKGBUILD
----------+
PKGBUILD | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-17 18:40:17 UTC (rev 1349394)
+++ PKGBUILD 2022-11-17 18:48:31 UTC (rev 1349395)
@@ -4,13 +4,13 @@
pkgname=('lib32-llvm' 'lib32-llvm-libs')
pkgver=14.0.6
-pkgrel=2
+pkgrel=3
arch=('x86_64')
url="https://llvm.org/"
license=('custom:Apache 2.0 with LLVM Exception')
makedepends=('cmake' 'ninja' 'lib32-libffi' 'lib32-zlib' 'python'
'gcc-multilib'
'lib32-libxml2')
-options=('staticlibs' '!lto') # extra/llvm has many test failures with LTO
+options=('staticlibs' 'debug' '!lto') # extra/llvm has many test failures with
LTO
_source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
source=($_source_base/llvm-$pkgver.src.tar.xz{,.sig})
sha256sums=('050922ecaaca5781fdf6631ea92bc715183f202f9d2f15147226f023414f619a'
@@ -25,8 +25,12 @@
build() {
cd llvm-$pkgver.src/build
- export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+ export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
+ # Build only minimal debug info to reduce size
+ CFLAGS+=' -g1'
+ CXXFLAGS+=' -g1'
+
local cmake_args=(
-G Ninja
-DCMAKE_BUILD_TYPE=Release