Enable the build using scan-build

This commit is contained in:
Sylvestre Ledru 2013-05-17 12:38:59 +00:00
parent 7f06c60c54
commit afd4c9da4b

7
debian/rules vendored
View File

@ -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/ \