gitlab-ci: add clang build

`clang` has a different set of warnings and errors than `gcc`, so it's
useful to do at least a generic pass over Mesa with it.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Eric Engestrom 2019-03-19 07:59:07 +00:00
parent db57db5317
commit 43b6dd05f7
1 changed files with 9 additions and 0 deletions

View File

@ -208,6 +208,15 @@ meson-glvnd:
-D gallium-nine=false
-D gallium-opencl=disabled
meson-clang:
extends: .meson-build
variables:
UNWIND: "true"
DRI_DRIVERS: "auto"
GALLIUM_DRIVERS: "auto"
CC: clang-7
CXX: clang++-7
# NOTE: Building SWR is 2x (yes two) times slower than all the other
# gallium drivers combined.
# Start this early so that it doesn't hunder the run time.