2015-06-10 05:50:22 +08:00
|
|
|
include "llvm/Option/OptParser.td"
|
|
|
|
|
|
|
|
// lib.exe accepts options starting with either a dash or a slash.
|
|
|
|
|
|
|
|
// Flag that takes no arguments.
|
2019-06-11 09:13:41 +08:00
|
|
|
class F<string name> : Flag<["/", "-", "/?", "-?"], name>;
|
2015-06-10 05:50:22 +08:00
|
|
|
|
|
|
|
// Flag that takes one argument after ":".
|
|
|
|
class P<string name, string help> :
|
2019-06-11 09:13:41 +08:00
|
|
|
Joined<["/", "-", "/?", "-?"], name#":">, HelpText<help>;
|
2015-06-10 05:50:22 +08:00
|
|
|
|
2015-06-20 08:57:12 +08:00
|
|
|
def libpath: P<"libpath", "Object file search path">;
|
2019-02-10 01:33:04 +08:00
|
|
|
|
|
|
|
// Can't be called "list" since that's a keyword.
|
|
|
|
def lst : F<"list">, HelpText<"List contents of .lib file on stdout">;
|
2015-06-10 05:50:22 +08:00
|
|
|
def out : P<"out", "Path to file to write output">;
|
|
|
|
|
2018-07-14 10:29:44 +08:00
|
|
|
def llvmlibthin : F<"llvmlibthin">,
|
|
|
|
HelpText<"Make .lib point to .obj files instead of copying their contents">;
|
|
|
|
|
2019-06-11 09:13:41 +08:00
|
|
|
def machine: P<"machine", "Specify target platform">;
|
|
|
|
|
2018-07-14 10:29:44 +08:00
|
|
|
def help : F<"help">;
|
2019-06-11 09:13:41 +08:00
|
|
|
|
|
|
|
// /?? and -?? must be before /? and -? to not confuse lib/Options.
|
|
|
|
def help_q : Flag<["/??", "-??", "/?", "-?"], "">, Alias<help>;
|
2015-07-18 00:01:11 +08:00
|
|
|
|
2015-06-10 05:50:22 +08:00
|
|
|
//==============================================================================
|
|
|
|
// The flags below do nothing. They are defined only for lib.exe compatibility.
|
|
|
|
//==============================================================================
|
2015-06-20 08:57:12 +08:00
|
|
|
|
2019-06-11 09:13:41 +08:00
|
|
|
class QF<string name> : Joined<["/", "-", "/?", "-?"], name#":">;
|
2015-06-20 08:57:12 +08:00
|
|
|
|
|
|
|
def ignore : QF<"ignore">;
|
2015-06-10 05:50:22 +08:00
|
|
|
def nologo : F<"nologo">;
|