Skip LGTM analysis for the bootstrap library and tools

This is because the same code is built for the bootstrap library with
non-standard options like disabled threads, which causes false alerts.
So we build the bootstrap tools in the "configure" step.

Additionally we update the configure flags to only the ones that
matter for the CMake build, after the latest configure script updates.

Change-Id: Id4f90db2a16904f6665f3994f23a9f2a974aefc6
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Dimitrios Apostolou 2020-07-04 01:32:40 +02:00
parent b7ccc80526
commit 273be0b9e6

View File

@ -16,8 +16,18 @@ extraction:
\ | tar -xzf - --strip-components=1 -C $HOME/cmake-3.17 \ | tar -xzf - --strip-components=1 -C $HOME/cmake-3.17
- export PATH=$HOME/cmake-3.17/bin:$PATH - export PATH=$HOME/cmake-3.17/bin:$PATH
# Pre-analysis step.
configure: configure:
command: "./configure -cmake -opensource -confirm-license -debug -no-optimize-debug \ command:
\ -nomake tests -nomake examples -no-harfbuzz -no-iconv -system-pcre -system-zlib \ - "./configure -cmake -opensource -confirm-license -debug -no-pch \
\ -system-freetype -system-libpng -system-libjpeg -system-sqlite -- -DFEATURE_system_sqlite=ON \ \ -nomake tests -nomake examples -no-harfbuzz \
\ -DQT_NO_MAKE_TESTS=ON -DQT_NO_MAKE_EXAMPLES=ON" \ -system-pcre -system-zlib -system-freetype -system-libpng \
\ -system-libjpeg -system-sqlite"
# We skip analyzing the bootstrap library, since the same code is
# built with non-standard flags and false-positives are flagged.
- ninja bootstrap_tools
# Actual analysis.
index:
build_command:
- ninja