From 760b8633bc350b15ae7f67fe1d78ed91179bbb79 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 30 Oct 2019 22:25:12 +0200 Subject: [PATCH] Pass explicit command line argument to disable exceptions with MSVC. --- mesonbuild/compilers/cpp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 4e925902a..6161b7af9 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -435,7 +435,9 @@ class VisualStudioLikeCPPCompilerMixin: eh = options['cpp_eh'] if eh.value == 'default': args.append('/EHsc') - elif eh.value != 'none': + elif eh.value == 'none': + args.append('/EHs-c-') + else: args.append('/EH' + eh.value) permissive, ver = self.VC_VERSION_MAP[options['cpp_std'].value]