Options.td 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. include "llvm/Option/OptParser.td"
  2. // lib.exe accepts options starting with either a dash or a slash.
  3. // Flag that takes no arguments.
  4. class F<string name> : Flag<["/", "-", "/?", "-?"], name>;
  5. // Flag that takes one argument after ":".
  6. class P<string name, string help> :
  7. Joined<["/", "-", "/?", "-?"], name#":">, HelpText<help>;
  8. def libpath: P<"libpath", "Object file search path">;
  9. // Can't be called "list" since that's a keyword.
  10. def lst : F<"list">, HelpText<"List contents of .lib file on stdout">;
  11. def out : P<"out", "Path to file to write output">;
  12. def llvmlibthin : F<"llvmlibthin">,
  13. HelpText<"Make .lib point to .obj files instead of copying their contents">;
  14. def llvmlibempty : F<"llvmlibempty">,
  15. HelpText<"When given no contents, produce an empty .lib file">;
  16. def machine: P<"machine", "Specify target platform">;
  17. def help : F<"help">;
  18. // /?? and -?? must be before /? and -? to not confuse lib/Options.
  19. def help_q : Flag<["/??", "-??", "/?", "-?"], "">, Alias<help>;
  20. //==============================================================================
  21. // The flags below do nothing. They are defined only for lib.exe compatibility.
  22. //==============================================================================
  23. class QF<string name> : Joined<["/", "-", "/?", "-?"], name#":">;
  24. def ignore : QF<"ignore">;
  25. def nologo : F<"nologo">;