llvm: use -g1 instead of nodebug.
We previously set nodebug since clang-dbg was bigger than 2GB. Setting -g1 vastly reduces the debugging information (down to ~10%), but still provides enough information to get a backtrace and an idea of what is going wrong.
This commit is contained in:
parent
9b009d1143
commit
5f93f27f96
1 changed files with 4 additions and 4 deletions
|
@ -35,10 +35,6 @@ checksum="1ff53c915b4e761ef400b803f07261ade637b0c269d99569f18040f3dcee4408
|
|||
hostmakedepends="groff perl python zlib-devel libffi-devel swig"
|
||||
makedepends="python-devel zlib-devel libffi-devel libedit-devel libxml2-devel binutils-devel libatomic-devel"
|
||||
depends="libllvm6.0"
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64) : ALLOW DEBUG ;;
|
||||
*) nodebug=yes ;;
|
||||
esac
|
||||
|
||||
subpackages="clang-tools-extra clang clang-analyzer libllvm6.0"
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
|
@ -102,6 +98,10 @@ post_extract() {
|
|||
}
|
||||
|
||||
pre_configure() {
|
||||
# Vastly reduce size of debugging symbols:
|
||||
CFLAGS=${CFLAGS/ -g/ -g1}
|
||||
CXXFLAGS=${CXXFLAGS/ -g/ -g1}
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
msg_normal "Building host tblgen\n"
|
||||
mkdir -p build/HOST
|
||||
|
|
Loading…
Reference in a new issue