[atkmm/atkmm-2-28] Visual Studio builds: Clean up build files



commit 03631194dcda3ae31b75636f6ed91ccde12d106c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue May 11 16:30:04 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 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 | 3 +--
 meson.build                | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/MSVC_NMake/config-msvc.mak b/MSVC_NMake/config-msvc.mak
index b3de02f..73f3637 100644
--- a/MSVC_NMake/config-msvc.mak
+++ b/MSVC_NMake/config-msvc.mak
@@ -29,8 +29,7 @@ GMMPROC_DIR=$(PREFIX)\share\glibmm-$(GLIBMM_MAJOR_VERSION).$(GLIBMM_MINOR_VERSIO
 ATKMM_BASE_CFLAGS =                    \
        /Ivs$(VSVER)\$(CFG)\$(PLAT)     \
        /I..\untracked\atk              \
-       /I..\atk /I.\atkmm              \
-       /wd4530 /wd4251 /wd4275 /EHsc   \
+       /I..\atk /I.\atkmm /EHsc        \
        /FImsvc_recommended_pragmas.h
 
 !if $(VSVER) > 12
diff --git a/meson.build b/meson.build
index c7b326a..03e43d1 100644
--- a/meson.build
+++ b/meson.build
@@ -241,7 +241,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']
+  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]