From 93da30b9cbd974ad1b7705fd5fe9a2fa314b550a Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Mon, 25 Sep 2017 08:35:55 +0000 Subject: [PATCH] Readd NDEBUG build flag --- debian/changelog | 6 ++++++ debian/rules | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index d9dc2699..c67cdd2e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +llvm-toolchain-5.0 (1:5.0-3) UNRELEASED; urgency=medium + + * Add NDEBUG macro, lost in the previous -g --> -g1 switch + + -- Gianfranco Costamagna Mon, 25 Sep 2017 10:27:03 +0200 + llvm-toolchain-5.0 (1:5.0-2) unstable; urgency=medium [ Matthias Klose ] diff --git a/debian/rules b/debian/rules index ace6d715..adfa7c6b 100755 --- a/debian/rules +++ b/debian/rules @@ -60,10 +60,13 @@ endif export CC=gcc-$(GCC_VERSION) export CXX=g++-$(GCC_VERSION) -opt_flags = -g -O2 +opt_flags = -O2 -DNDEBUG ifneq (,$(filter $(DEB_HOST_ARCH),amd64 arm64 ppc64el s390x)) - opt_flags = -g1 -O2 + opt_flags += -g1 +else + opt_flags += -g endif + ifneq (,$(findstring $(DEB_HOST_ARCH),armel)) opt_flags += -marm # 3.8 fails to build, disable the compiler_rt builtins