Meson: Fix warnings on clang-cl

Treat CLangCL as MSVC
This commit is contained in:
Luca Bacci 2026-03-27 14:35:28 +01:00
parent c988a8e36e
commit af2dbc14b7

View file

@ -90,7 +90,7 @@ if cc.get_id() != 'msvc'
conf.set('WARN_UNUSED_RESULT', warn_unused_result)
endif
if cc.get_id() == 'msvc'
if cc.get_argument_syntax() == 'msvc'
# Basic usage in the cairo type system that causes spammy and useless warnings
add_project_arguments('/wd4244', '/wd4146',
# Don't warn about double -> float truncation