commit | 1aa91992d76645bd82cf287d134554952dd2fcb0 | [log] [tgz] |
---|---|---|
author | Manojkiran Eda <manojkiran.eda@gmail.com> | Fri Oct 02 14:11:53 2020 +0530 |
committer | Ed Tanous <ed@tanous.net> | Fri Oct 02 17:35:32 2020 -0700 |
tree | 594fa3da03a6e1a73d57057f5148f5136c4be0d3 | |
parent | bc5c1c44ad0fdd4da391e09abc46bebe32b87bea [diff] |
Fix clang-tidy support in CI for meson builds - As clang and gcc flags have diverged over the years, clang-tidy requires clang flags to be present in compile-commands.json which can be generated via a meson build with clang compiler. - In the current state, the build directory is already created with gcc, so for a repo with .clang-tidy file, we get a lot of errors about unknown warning flags[clang-diagnostic-unknown-warning-option] - This commit would change the compiler to clang++, and would create another build directory for clang builds, and use that configuration for clang-tidy. - This would not harm later builds in the CI sequnce, as they are doing a meson configure[in build directory] which would not change the compiler. Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Signed-off-by: Ed Tanous <ed@tanous.net> Change-Id: I8de5a53229bef1dd9b774597d09d39e34e168cdb
Build script for CI jobs in Jenkins.