[PATCH] D44778: [clang-format] Wildcard expansion on Windows.
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 22 05:30:54 PDT 2018
alexfh created this revision.
alexfh added reviewers: klimek, djasper.
Herald added a subscriber: mgorny.
Add support for wildcard expansion in command line arguments on Windows.
See https://docs.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments
Fixes https://bugs.llvm.org/show_bug.cgi?id=17217
Repository:
rC Clang
https://reviews.llvm.org/D44778
Files:
tools/clang-format/CMakeLists.txt
Index: tools/clang-format/CMakeLists.txt
===================================================================
--- tools/clang-format/CMakeLists.txt
+++ tools/clang-format/CMakeLists.txt
@@ -4,6 +4,14 @@
ClangFormat.cpp
)
+if( PURE_WINDOWS )
+ # Add support for wildcard expansion in command-line arguments on Windows.
+ # See
+ # https://docs.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments
+ set_property(TARGET clang-format APPEND_STRING PROPERTY
+ LINK_FLAGS " setargv.obj")
+endif()
+
set(CLANG_FORMAT_LIB_DEPS
clangBasic
clangFormat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44778.139431.patch
Type: text/x-patch
Size: 575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180322/cfe5ee46/attachment.bin>
More information about the cfe-commits
mailing list