Get midl.exe to use clang-cl instead of cl
When midl.py is finished its work it invokes midl.exe to ensure that the
results are the same. midl.exe defaults to invoking cl.exe, and we want
to consistently use clang-cl.exe.
This change uses /cpp_cmd to specify the clang-cl compiler. It then uses
/cpp_opt to specify -Wno-nonportable-include-path because some of the
SDK .idl files include files using different case from the file on disk.
Typical warnings look like this:
non-portable path to file '"Unknwnbase.Idl"'; specified path differs
in case from file name on disk [-Wnonportable-include-path]
When you use /cpp_opt then you are also responsible for specifying -E
and -nologo and for passing along all of the /D commands, so this change
does that as well.
Commit-Queue: Bruce Dawson <firstname.lastname@example.org>
Reviewed-by: Nico Weber <email@example.com>
2 files changed