From afd4c9da4bedbc429f2d5307fc3bdc89a8ff9b65 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 17 May 2013 12:38:59 +0000 Subject: [PATCH] Enable the build using scan-build --- debian/rules | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index b91490f2..efbd23c2 100755 --- a/debian/rules +++ b/debian/rules @@ -69,6 +69,11 @@ ifneq (,$(filter codecoverage,$(DEB_BUILD_OPTIONS))) LDFLAGS_EXTRA=-coverage -lgcov endif +ifneq (,$(filter scan-build,$(DEB_BUILD_OPTIONS))) +# enable the build using scan-build + PRE_CONFIGURE=scan-build +endif + %: dh $@ # --buildsystem=cmake --builddirectory=$(TARGET_BUILD) @@ -117,7 +122,7 @@ override_dh_auto_configure: debian/lldb-$(LLVM_VERSION).install debian/lldb-$(LL readlink compiler-rt # Start the actual configure - cd $(TARGET_BUILD) && \ + cd $(TARGET_BUILD) && $(PRE_CONFIGURE) \ ../configure $(confargs) \ --prefix=/usr/lib/llvm-$(LLVM_VERSION) \ --bindir=\$${prefix}/bin/ \