gitlab-ci: add clang build
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 19 Mar 2019 07:59:07 +0000 (07:59 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 19 Mar 2019 12:59:38 +0000 (12:59 +0000)
`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>
.gitlab-ci.yml

index a9bcd3b05187322aa46d11b99e89e7819dea764a..87f6c19f31be259c4a6fac84f92d6759990b278c 100644 (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.