Date: Thursday, November 17, 2022 @ 18:48:35
Author: heftig
Revision: 462120
14.0.6-4: enable debug
Modified:
llvm/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-17 18:15:35 UTC (rev 462119)
+++ PKGBUILD 2022-11-17 18:48:35 UTC (rev 462120)
@@ -3,7 +3,7 @@
pkgname=('llvm' 'llvm-libs')
pkgver=14.0.6
-pkgrel=3
+pkgrel=4
arch=('x86_64')
url="https://llvm.org/"
license=('custom:Apache 2.0 with LLVM Exception')
@@ -10,7 +10,7 @@
makedepends=('cmake' 'ninja' 'libffi' 'libedit' 'ncurses' 'libxml2'
'python-setuptools' 'python-psutil' 'python-sphinx'
'python-recommonmark')
-options=('staticlibs' '!lto') # Getting thousands of test failures with LTO
+options=('staticlibs' 'debug' '!lto') # Getting thousands of 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}
llvm-coroutines-ubsan.patch
@@ -32,6 +32,10 @@
build() {
cd llvm-$pkgver.src/build
+ # Build only minimal debug info to reduce size
+ CFLAGS+=' -g1'
+ CXXFLAGS+=' -g1'
+
local cmake_args=(
-G Ninja
-DCMAKE_BUILD_TYPE=Release