Never seen this PURE_WINDOWS CMake variable.  How is it different than MSVC?<br><div class="gmail_quote"><div dir="ltr">On Thu, Mar 22, 2018 at 5:30 AM Alexander Kornienko 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">alexfh created this revision.<br>
alexfh added reviewers: klimek, djasper.<br>
Herald added a subscriber: mgorny.<br>
<br>
Add support for wildcard expansion in command line arguments on Windows.<br>
See <a href="https://docs.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments" rel="noreferrer" target="_blank">https://docs.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments</a><br>
<br>
Fixes <a href="https://bugs.llvm.org/show_bug.cgi?id=17217" rel="noreferrer" target="_blank">https://bugs.llvm.org/show_bug.cgi?id=17217</a><br>
<br>
<br>
Repository:<br>
  rC Clang<br>
<br>
<a href="https://reviews.llvm.org/D44778" rel="noreferrer" target="_blank">https://reviews.llvm.org/D44778</a><br>
<br>
Files:<br>
  tools/clang-format/CMakeLists.txt<br>
<br>
<br>
Index: tools/clang-format/CMakeLists.txt<br>
===================================================================<br>
--- tools/clang-format/CMakeLists.txt<br>
+++ tools/clang-format/CMakeLists.txt<br>
@@ -4,6 +4,14 @@<br>
   ClangFormat.cpp<br>
   )<br>
<br>
+if( PURE_WINDOWS )<br>
+  # Add support for wildcard expansion in command-line arguments on Windows.<br>
+  # See<br>
+  # <a href="https://docs.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments" rel="noreferrer" target="_blank">https://docs.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments</a><br>
+  set_property(TARGET clang-format APPEND_STRING PROPERTY<br>
+    LINK_FLAGS " setargv.obj")<br>
+endif()<br>
+<br>
 set(CLANG_FORMAT_LIB_DEPS<br>
   clangBasic<br>
   clangFormat<br>
<br>
<br>
</blockquote></div>