From a1ba95bddd77ae100e0e00334318c7f7cc229841 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 13 May 2019 15:30:15 +0200 Subject: [PATCH] Use thinlto for the build --- debian/changelog | 1 + debian/rules | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/debian/changelog b/debian/changelog index eb575a1a..3c4665fa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 18 Apr 2019 19:05:45 +0200 diff --git a/debian/rules b/debian/rules index 5cb533e7..b6bb5bee 100755 --- a/debian/rules +++ b/debian/rules @@ -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))