Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable building with clang (limit strict error checking to GCC) (#1452)
Compiling RAFT with a non-GCC compiler can be tricky as there is very strict error checking (`-Werror=all-warnings` for instance) and therefore, the build is almost guaranteed to fail due to warnings elevated to errors. I am sometimes building RAFT with clang because of its `-ftime-trace` feature, which helps find code that increases compile times. This PR contains the changes I typically make to the CMakeLists.txt to enable clang compilation. With this change, strict error checking is only performed when the host compiler is GCC. Tested with clang version 11.1. Authors: - Allard Hendriksen (https://github.com/ahendriksen) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: #1452
- Loading branch information