Skip to content

Commit 879936b

Browse files
committed
win: Allow support MIDL ValidateParameters and GenerateTypeLibrary.
1 parent 0a70b36 commit 879936b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pylib/gyp/msvs_emulation.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,12 @@ def midl(name, default=None):
758758
# TODO(scottmg): Are there configuration settings to set these flags?
759759
target_platform = 'win32' if self.GetArch(config) == 'x86' else 'x64'
760760
flags = ['/char', 'signed', '/env', target_platform, '/Oicf']
761+
762+
if midl('ValidateParameters', default='true') != 'true':
763+
flags.append('/no_robust')
764+
if midl('GenerateTypeLibrary', default='true') != 'true':
765+
flags.append('/notlb')
766+
761767
return outdir, output, variables, flags
762768

763769

0 commit comments

Comments
 (0)