commit 6a6db3dce29286d7c90d547e12b2cd84182f88e0
Author: Jakub Bogusz <[email protected]>
Date:   Fri Dec 8 19:15:23 2017 +0100

    - reenable split-dwarf (but only when building debug packages)
    - rust is not ready for LLVM 5 yet

 llvm.spec | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/llvm.spec b/llvm.spec
index bdd5b70..132d438 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -1,4 +1,5 @@
 # TODO:
+# - wait for rust ready for LLVM 5.0
 # - move and package:
 #      %{_datadir}/clang/bash-autocomplete.sh
 #      %{_datadir}/clang/clang-format-sublime.py - sublime plugin
@@ -135,8 +136,12 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                specflags_ppc   -fno-var-tracking-assignments
 # ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237
-#define                specflags_ia32  -gsplit-dwarf
-#define                specflags_x32   -gsplit-dwarf
+# use -gsplit-dwarf only when building packages with debuginfo
+# to avoid excessive disk space usage
+%if 0%{?_enable_debug_packages}
+%define                specflags_ia32  -gsplit-dwarf
+%define                specflags_x32   -gsplit-dwarf
+%endif
 
 # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
 %define                _noautostrip    
.*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/6a6db3dce29286d7c90d547e12b2cd84182f88e0

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to