Pass explicit command line argument to disable exceptions with MSVC.
This commit is contained in:
parent
d218d52367
commit
760b8633bc
|
@ -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…
Reference in New Issue