[packages/llvm] keep asserts disabled with lowmem
atler
atler at pld-linux.org
Tue Mar 21 14:28:57 CET 2023
commit 1b6050f41ee1db593bba58855ae4d873898f196a
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Mar 21 14:22:39 2023 +0100
keep asserts disabled with lowmem
llvm.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/llvm.spec b/llvm.spec
index f6c315a..8a92c6a 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -742,8 +742,8 @@ cd build
CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
%if %{with lowmem}
-export CFLAGS="%{rpmcflags} -g0"
-export CXXFLAGS="%{rpmcxxflags} -g0"
+export CFLAGS="%{rpmcflags} -NDEBUG -g0"
+export CXXFLAGS="%{rpmcxxflags} -NDEBUG -g0"
if echo 'int main(){}' | %{__cc} -x c %{rpmldflags} -Wl,--reduce-memory-overheads -o /dev/null - > /dev/null 2>&1; then
export LDFLAGS="%{rpmldflags} -Wl,--reduce-memory-overheads"
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/5413926362a3afb814148219b7537c82a44d2e67
More information about the pld-cvs-commit
mailing list