Use thinlto for the build

This commit is contained in:
Sylvestre Ledru 2019-05-13 15:30:15 +02:00
parent 093bc70984
commit a1ba95bddd
2 changed files with 5 additions and 0 deletions

1
debian/changelog vendored
View File

@ -6,6 +6,7 @@ llvm-toolchain-snapshot (1:9~svn358688-1~exp1) experimental; urgency=medium
* No longer install lldb-test (disable upstream in 358574)
* Install lit-cpuid in llvm-9-tools
* libclang-X.Y: add clang_Cursor_isAnonymousRecordDecl to the list of symbols
* Use thinlto for the build
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 18 Apr 2019 19:05:45 +0200

4
debian/rules vendored
View File

@ -145,6 +145,10 @@ BOOTSTRAP_CXXFLAGS_EXTRA = $(CXXFLAGS_EXTRA) # Nothing for now. Keeping in case
CFLAGS_EXTRA += -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option
BOOTSTRAP_CFLAGS_EXTRA = $(CFLAGS_EXTRA) # Nothing for now. Keeping in case we need it
CFLAGS_EXTRA += $(CFLAGS_EXTRA) -flto=thin
CXXFLAGS_EXTRA += $(CXXFLAGS_EXTRA) -flto=thin
LDFLAGS_EXTRA += $(LDFLAGS_EXTRA) -flto=thin
# Enable polly (or not)
POLLY_ENABLE=yes
ifneq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe))