From 26f542484ebe88ef231ff36e8853f806dd7ecfd3 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 30 Apr 2019 16:07:39 +0800 Subject: build: Force-include msvc_recommended_pragmas.h on Visual Studio By doing so, we essentially cover the various compiler flags that we want to use for non-Visual Studio builds to check for warnings that might cause real concern. This also skips the checks for the various GCC-isque CFlag checks that are scattered in the various build files on Visual Studio builds, since they are essentially meaningless on Visual Studio builds. --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index d5709521..941d63ec 100644 --- a/meson.build +++ b/meson.build @@ -63,6 +63,10 @@ if cc.get_id() != 'msvc' project_c_args += [ '-fno-strict-aliasing', ] +else + project_c_args += [ + '-FImsvc_recommended_pragmas.h', + ] endif project_c_args = cc.get_supported_arguments(project_c_args) -- cgit v1.2.1