mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-24 22:00:27 +00:00
Improve the coverity usage
This commit is contained in:
parent
08da742eed
commit
bc3c828166
11
debian/rules
vendored
11
debian/rules
vendored
@ -82,7 +82,8 @@ ifneq (,$(filter coverity,$(DEB_BUILD_OPTIONS)))
|
|||||||
# pbuilder contains BINDMOUNTS="/opt/cov-analysis/"
|
# pbuilder contains BINDMOUNTS="/opt/cov-analysis/"
|
||||||
# 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=/opt/cov-analysis/bin/cov-build --dir cov-int
|
PRE_PROCESS=PATH=/opt/cov-analysis/bin/ cov-build --dir cov-int
|
||||||
|
COVERITY_ENABLE=1
|
||||||
# no need to run tests in this case
|
# no need to run tests in this case
|
||||||
DEB_BUILD_OPTIONS+=" nocheck"
|
DEB_BUILD_OPTIONS+=" nocheck"
|
||||||
endif
|
endif
|
||||||
@ -129,6 +130,14 @@ override_dh_auto_configure: debian/lldb-$(LLVM_VERSION).install debian/lldb-$(LL
|
|||||||
ln -s ../compiler-rt .; \
|
ln -s ../compiler-rt .; \
|
||||||
readlink compiler-rt
|
readlink compiler-rt
|
||||||
|
|
||||||
|
# Configure coverity (we need the compilers)
|
||||||
|
if test "$COVERITY_ENABLE" -eq "1"; then \
|
||||||
|
export PATH=$$PATH:/opt/cov-analysis/bin; \
|
||||||
|
cov-configure --compiler clang --comptype gcc; \
|
||||||
|
cov-configure --compiler gcc-4.8 --comptype gcc; \
|
||||||
|
cov-configure --compiler g++-4.8 --comptype gcc; \
|
||||||
|
fi
|
||||||
|
|
||||||
# Due to bug upstream, no symlink here
|
# Due to bug upstream, no symlink here
|
||||||
cp -R -H clang-tools-extra tools/clang/tools/extra
|
cp -R -H clang-tools-extra tools/clang/tools/extra
|
||||||
# Start the actual configure
|
# Start the actual configure
|
||||||
|
Loading…
Reference in New Issue
Block a user