blob: 4c297f749ed95f36c5d585f9d8f07ceb62a41a55 [file] [log] [blame]
Peter Collingbournebc051632015-06-09 21:50:22 +00001include "llvm/Option/OptParser.td"
2
3// lib.exe accepts options starting with either a dash or a slash.
4
5// Flag that takes no arguments.
6class F<string name> : Flag<["/", "-", "-?"], name>;
7
8// Flag that takes one argument after ":".
9class P<string name, string help> :
10 Joined<["/", "-", "-?"], name#":">, HelpText<help>;
11
Peter Collingbourne70708272015-06-20 00:57:12 +000012def libpath: P<"libpath", "Object file search path">;
Nico Webera2f60932019-02-09 17:33:04 +000013
14// Can't be called "list" since that's a keyword.
15def lst : F<"list">, HelpText<"List contents of .lib file on stdout">;
Peter Collingbournebc051632015-06-09 21:50:22 +000016def out : P<"out", "Path to file to write output">;
17
Nico Weber17172c62018-07-14 02:29:44 +000018def llvmlibthin : F<"llvmlibthin">,
19 HelpText<"Make .lib point to .obj files instead of copying their contents">;
20
21def help : F<"help">;
22def help_q : Flag<["/?", "-?"], "">, Alias<help>;
Rafael Espindola2bec8502015-07-17 16:01:11 +000023
Peter Collingbournebc051632015-06-09 21:50:22 +000024//==============================================================================
25// The flags below do nothing. They are defined only for lib.exe compatibility.
26//==============================================================================
Peter Collingbourne70708272015-06-20 00:57:12 +000027
28class QF<string name> : Joined<["/", "-", "-?"], name#":">;
29
30def ignore : QF<"ignore">;
31def machine: QF<"machine">;
Peter Collingbournebc051632015-06-09 21:50:22 +000032def nologo : F<"nologo">;