[atkmm] Visual Studio builds: Clean up build files



commit 5beadbe0e292ec5009b83673de55f682db655480
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 | 4 +---
 meson.build                | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/MSVC_NMake/config-msvc.mak b/MSVC_NMake/config-msvc.mak
index 68ddd51..3e5951b 100644
--- a/MSVC_NMake/config-msvc.mak
+++ b/MSVC_NMake/config-msvc.mak
@@ -30,9 +30,7 @@ ATKMM_BASE_CFLAGS =           \
        /Ivs$(VSVER)\$(CFG)\$(PLAT)     \
        /I..\untracked\atk      \
        /I..\atk /I.\atkmm      \
-       /wd4530 /wd4251 \
-       /wd4275 /std:c++17      \
-       /utf-8  \
+       /std:c++17 /utf-8 /EHsc \
        /FImsvc_recommended_pragmas.h
 
 ATKMM_EXTRA_INCLUDES = \
diff --git a/meson.build b/meson.build
index c720b4e..db37edb 100644
--- a/meson.build
+++ b/meson.build
@@ -206,7 +206,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', '/utf-8']
+  foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/EHsc', '/utf-8']
     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]