coverity-scan: switch to vpath build
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Aug 2020 13:15:08 +0000 (09:15 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Jul 2021 05:54:50 +0000 (07:54 +0200)
This is the patch that has been running on the coverity cronjob
for a few weeks now.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/coverity-scan/run-coverity-scan

index 6eefb4b558d4fa7b148e530ec1b8259ff6f1c892..7395bbfad49af2b2365f9a66f951bac48b6a3641 100755 (executable)
@@ -380,15 +380,17 @@ export PATH="$TOOLBIN:$PATH"
 
 cd "$SRCDIR"
 
-echo "Doing make distclean..."
-make distclean
+echo "Nuking build directory..."
+rm -rf +build
+mkdir +build
+cd +build
 
 echo "Configuring..."
 # We configure with a fixed set of enables here to ensure that we don't
 # accidentally reduce the scope of the analysis by doing the build on
 # the system that's missing a dependency that we need to build part of
 # the codebase.
-./configure --disable-modules --enable-sdl --enable-gtk \
+../configure --disable-modules --enable-sdl --enable-gtk \
     --enable-opengl --enable-vte --enable-gnutls \
     --enable-nettle --enable-curses --enable-curl \
     --audio-drv-list=oss,alsa,sdl,pa --enable-virtfs \