[PATCH] D62692: llvm-rc: accept /D, /U, /I parameters joined or separate like rc.exe

Marc-André Moreau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 10:35:19 PDT 2019


awakecoding created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62692

Files:
  llvm/tools/llvm-rc/Opts.td


Index: llvm/tools/llvm-rc/Opts.td
===================================================================
--- llvm/tools/llvm-rc/Opts.td
+++ llvm/tools/llvm-rc/Opts.td
@@ -7,9 +7,9 @@
 def FILEOUT : JoinedOrSeparate<[ "/", "-" ], "FO">,
               HelpText<"Change the output file location.">;
 
-def DEFINE : Separate<[ "/", "-" ], "D">,
+def DEFINE : JoinedOrSeparate<[ "/", "-" ], "D">,
              HelpText<"Define a symbol for the C preprocessor.">;
-def UNDEF : Separate<[ "/", "-" ], "U">,
+def UNDEF : JoinedOrSeparate<[ "/", "-" ], "U">,
             HelpText<"Undefine a symbol for the C preprocessor.">;
 
 def LANG_ID : Separate<[ "/", "-" ], "L">,
@@ -17,7 +17,7 @@
 def LANG_NAME : Separate<[ "/", "-" ], "LN">,
                 HelpText<"Set the default language name.">;
 
-def INCLUDE : Separate<[ "/", "-" ], "I">, HelpText<"Add an include path.">;
+def INCLUDE : JoinedOrSeparate<[ "/", "-" ], "I">, HelpText<"Add an include path.">;
 def NOINCLUDE : Flag<[ "/", "-" ], "X">, HelpText<"Ignore 'include' variable.">;
 
 def ADD_NULL : Flag<[ "/", "-" ], "N">,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62692.202238.patch
Type: text/x-patch
Size: 1080 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190530/eb97b05a/attachment.bin>


More information about the llvm-commits mailing list