[pangomm/pangomm-2-46] Visual Studio builds: Clean up build files



commit ef899d303757987dd58099dcb1c14d5e2759fef3
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue May 11 14:19:41 2021 +0800

    Visual Studio builds: Clean up build files
    
    glibmm will be updated to be clear of classes that export items making the
    built binaries dependent on the exact compiler version and the STL version,
    which will eliminate the need to ignore warnings C4251, C4273 and C4275.
    
    We will also use the /EHsc compiler flag so that we can also drop the
    ignore on warning C4530.

 MSVC_NMake/config-msvc.mak | 2 +-
 meson.build                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/MSVC_NMake/config-msvc.mak b/MSVC_NMake/config-msvc.mak
index ff2891e..e60f5e3 100644
--- a/MSVC_NMake/config-msvc.mak
+++ b/MSVC_NMake/config-msvc.mak
@@ -36,7 +36,7 @@ PANGOMM_BASE_CFLAGS =                 \
        /I..\untracked\pango\pangomm    \
        /I..\pango\pangomm      \
        /I.\pangomm             \
-       /wd4530 /wd4251 /wd4275 /EHsc /utf-8    \
+       /EHsc /utf-8    \
        /FImsvc_recommended_pragmas.h
 
 PANGOMM_EXTRA_INCLUDES =       \
diff --git a/meson.build b/meson.build
index 3a98a0d..15cf04d 100644
--- a/meson.build
+++ b/meson.build
@@ -245,7 +245,7 @@ add_project_arguments(warning_flags, language: 'cpp')
 # MSVC: Ignore warnings that aren't really harmful, but make those
 #       that should not be overlooked stand out.
 if is_msvc
-  foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/wd4530', '/wd4251', '/wd4275']
+  foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/EHsc']
     disabled_warning = cpp_compiler.get_supported_arguments(wd)
     add_project_arguments(disabled_warning, language: 'cpp')
   endforeach


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]