Skip to content

Add clang build bot

Enrico Bothmann requested to merge ebothmann/sherpa:improve-gitlab-ci into master

This adds a new build bot for compiling with clang -Werror. A corresponding test run is also added.

Also, the Docker image used to build and run on is now Scientific Linux.

In order to allow the strict clang -Werror to compile successfully, the linker argument --no-as-needed (which is unknown to clang) is now only added when the compiler is happy about it. Before, it was only omitted on Darwin (macOS) architectures, so the new treatment is more correct.

I also tried to establish build bots that use clang with its MemorySanitizer and AddressSanitizer to catch memory issues early. However, this ran into issues on the GitLab CI runners, possibly due to how memory restrictions are configures on the VM. As documentation of what I tried, I attach the job specs.

With clang, we could try and add a static analyser bot in the future.

Merge request reports