Bug 1523144 - Don't pass compiler flags down to MIDL. r=froydnj

This turns out to not work at all, because this prevents MIDL itself to
pass -I to the compiler, which then proceeds to fail. We're just lucky
that our MSVC detection doesn't yield any default flags so this is
effectively dead code.

Differential Revision: https://phabricator.services.mozilla.com/D17767

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Hommey 2019-01-28 20:34:43 +00:00
Родитель eaeaff6004
Коммит 8c35f22090
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -1136,8 +1136,6 @@ def midl_flags(c_compiler, target, vc_compiler_path):
flags = ['-env', env]
if c_compiler.type == 'msvc':
flags += ['-cpp_cmd', c_compiler.compiler]
if c_compiler.flags:
flags += ['-cpp_opt', quote(' '.join(list(c_compiler.flags) + ['-E']))]
else:
# Ideally, we'd use the same flags setup as for msvc, but clang-cl
# currently doesn't work as a preprocessor for midl, so we need to