mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-28 18:50:53 +00:00
Modify CMake configuration to only apply "-Xclang" options when building with the Clang compiler. These options are Clang-specific and can cause errors or warnings when used with other compilers like g++. This change: - Adds compiler detection to conditionally apply Clang-specific flags - Prevents build failures when using non-Clang compilers Previously, the build system would apply these flags universally, which could lead to compilation errors with other compilers. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes scylladb/scylladb#22899