One idea would be to define some lit substitutions like %debuginfo.  It’s true you can produce a gcc style command line that will be equivalent to a clang-cl invocation but it won’t be easy.  eg you’ll needing to pass -fms-compatibility as well as various -I for includes.<br><br>It may be easier to have substitutions instead <br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 1, 2018 at 4:54 AM Pavel Labath via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">labath added inline comments.<br>
<br>
<br>
================<br>
Comment at: lit/Expr/TestIRMemoryMapWindows.test:1-12<br>
+# REQUIRES: windows<br>
+<br>
+# RUN: clang-cl /Zi %p/Inputs/call-function.cpp -o %t<br>
+<br>
+# RUN: lldb-test ir-memory-map %t %S/Inputs/ir-memory-map-basic<br>
+# RUN: lldb-test ir-memory-map -host-only %t %S/Inputs/ir-memory-map-basic<br>
+<br>
----------------<br>
The only difference in this test is the command line used to compile the inferior right? That sounds like something that we will run into for a lot of lit test, so I think it's important to work something our right away. Making a windows-flavoured copy of each test is not tractable.<br>
<br>
Is there a reason you have to use clang-cl here? I was under the impression that clang.exe worked fine on windows too (and used a gcc-compatible command line)...<br>
<br>
<br>
<a href="https://reviews.llvm.org/D52618" rel="noreferrer" target="_blank">https://reviews.llvm.org/D52618</a><br>
<br>
<br>
<br>
</blockquote></div>