mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-14 12:01:14 +00:00
Enable the assertions when doing the static code analysis
This commit is contained in:
parent
850ed34343
commit
0ee244c8e1
6
debian/rules
vendored
6
debian/rules
vendored
@ -23,6 +23,7 @@ export CXX=g++-$(GCC_VERSION)
|
|||||||
|
|
||||||
LDFLAGS_EXTRA=
|
LDFLAGS_EXTRA=
|
||||||
CXXFLAGS_EXTRA=
|
CXXFLAGS_EXTRA=
|
||||||
|
CONFIGURE_EXTRA=
|
||||||
|
|
||||||
confargs := \
|
confargs := \
|
||||||
--with-c-include-dirs=/usr/include/$(DEB_HOST_MULTIARCH):/usr/include/$(DEB_HOST_GNU_TYPE):/usr/include \
|
--with-c-include-dirs=/usr/include/$(DEB_HOST_MULTIARCH):/usr/include/$(DEB_HOST_GNU_TYPE):/usr/include \
|
||||||
@ -75,6 +76,7 @@ ifneq (,$(filter scan-build,$(DEB_BUILD_OPTIONS)))
|
|||||||
PRE_PROCESS_CONF=scan-build
|
PRE_PROCESS_CONF=scan-build
|
||||||
# no need to run tests in this case
|
# no need to run tests in this case
|
||||||
DEB_BUILD_OPTIONS+=" nocheck"
|
DEB_BUILD_OPTIONS+=" nocheck"
|
||||||
|
CONFIGURE_EXTRA += --enable-assertions
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@ -84,11 +86,10 @@ ifneq (,$(filter coverity,$(DEB_BUILD_OPTIONS)))
|
|||||||
# And we have some pbuilder hooks to configure and pack the result
|
# And we have some pbuilder hooks to configure and pack the result
|
||||||
# Where the binaries are installed on the jenkins instance
|
# Where the binaries are installed on the jenkins instance
|
||||||
PRE_PROCESS=PATH=$$PATH:/opt/cov-analysis/bin/ cov-build --dir cov-int
|
PRE_PROCESS=PATH=$$PATH:/opt/cov-analysis/bin/ cov-build --dir cov-int
|
||||||
|
|
||||||
# We don't want to check the temporary files produced by the configure
|
# We don't want to check the temporary files produced by the configure
|
||||||
PRE_PROCESS_CONF=
|
PRE_PROCESS_CONF=
|
||||||
|
|
||||||
COVERITY_ENABLE=1
|
COVERITY_ENABLE=1
|
||||||
|
CONFIGURE_EXTRA += --enable-assertions
|
||||||
# no need to run tests in this case
|
# no need to run tests in this case
|
||||||
DEB_BUILD_OPTIONS+=" nocheck"
|
DEB_BUILD_OPTIONS+=" nocheck"
|
||||||
else
|
else
|
||||||
@ -164,6 +165,7 @@ override_dh_auto_configure: debian/lldb-$(LLVM_VERSION).install debian/lldb-$(LL
|
|||||||
--with-cloog --with-isl \
|
--with-cloog --with-isl \
|
||||||
--with-bug-report-url=http://bugs.debian.org/ \
|
--with-bug-report-url=http://bugs.debian.org/ \
|
||||||
--enable-shared --enable-experimental-targets=R600 \
|
--enable-shared --enable-experimental-targets=R600 \
|
||||||
|
$(CONFIGURE_EXTRA) \
|
||||||
CLANG_VENDOR=$(VENDOR) || { cat config.log tools/polly/config.log; exit 1; }
|
CLANG_VENDOR=$(VENDOR) || { cat config.log tools/polly/config.log; exit 1; }
|
||||||
# cd $(TARGET_BUILD) && cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON
|
# cd $(TARGET_BUILD) && cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON
|
||||||
# mkdir build-compiler-rt && cd build-compiler-rt && cmake ../compiler-rt
|
# mkdir build-compiler-rt && cd build-compiler-rt && cmake ../compiler-rt
|
||||||
|
Loading…
Reference in New Issue
Block a user