From 049015a7b8b00677b5cedfe70bb9eb249a2f1a4f Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Thu, 30 Jan 2025 11:12:54 -0800 Subject: [PATCH] meson: Enable /Zc:preprocessor for MSVC Part-of: --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index b639200c60c..181ebee9c9d 100644 --- a/meson.build +++ b/meson.build @@ -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++ 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)