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



commit 1a2681077054e945f052eac9b9ba5b2d1b467383
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 fda4192..55a11f7 100644
--- a/MSVC_NMake/config-msvc.mak
+++ b/MSVC_NMake/config-msvc.mak
@@ -32,7 +32,7 @@ PANGOMM_BASE_CFLAGS =                 \
        /Ivs$(VSVER)\$(CFG)\$(PLAT)     \
        /I..\untracked\pango /I..\untracked\pango\pangomm               \
        /I..\pango /I..\pango\pangomm /I.\pangomm               \
-       /wd4530 /wd4251 /wd4275 /std:c++17 /utf-8       \
+       /EHsc /std:c++17 /utf-8                 \
        /FImsvc_recommended_pragmas.h
 
 PANGOMM_EXTRA_INCLUDES =       \
diff --git a/meson.build b/meson.build
index c25f548..1475ef1 100644
--- a/meson.build
+++ b/meson.build
@@ -212,7 +212,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]