Pass explicit command line argument to disable exceptions with MSVC.

pull/4973/head
Jussi Pakkanen 5 years ago
parent d218d52367
commit 760b8633bc
  1. 4
      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]

Loading…
Cancel
Save