meson: Enable /Zc:preprocessor for MSVC

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33294>
This commit is contained in:
Jesse Natalie
2025-01-30 11:12:54 -08:00
committed by Marge Bot
parent 3129fd8dcf
commit 049015a7b8

View File

@@ -1099,6 +1099,7 @@ if cc.get_argument_syntax() == 'msvc'
'/we4024', # Error when passing different type of parameter
'/we4189', # 'identifier' : local variable is initialized but not referenced
'/Zc:__cplusplus', #Set __cplusplus macro to match the /std:c++<version> on the command line
'/Zc:preprocessor', # Use the standards-conforming preprocessor
]
c_args += cc.get_supported_arguments(_trial)
cpp_args += cpp.get_supported_arguments(_trial)