1*939c0351SAndres Villegasinclude "llvm/Option/OptParser.td" 2*939c0351SAndres Villegas 3*939c0351SAndres Villegasclass F<string letter, string help> : Flag<["-", "--"], letter>, HelpText<help>; 4*939c0351SAndres Villegasclass FF<string name, string help> : Flag<["-", "--"], name>, HelpText<help>; 5*939c0351SAndres Villegasclass S<string letter, string help> : Separate<["-", "--"], letter>, HelpText<help>; 6*939c0351SAndres Villegasclass SS<string name, string help> : Separate<["-", "--"], name>, HelpText<help>; 7*939c0351SAndres Villegasclass JS<string letter, string help> : JoinedOrSeparate<["-", "--"], letter>, HelpText<help>; 8*939c0351SAndres Villegas 9*939c0351SAndres Villegasdef help : FF<"help", "Display this help">; 10*939c0351SAndres Villegasdef : F<"h", "">, Alias<help>; 11*939c0351SAndres Villegasdef deterministicOption : F<"D","Use zero for timestamps and UIDs/GIDs (Default)">; 12*939c0351SAndres Villegasdef nonDeterministicOption : F<"U", "Use actual timestamps and UIDs/GIDs">; 13*939c0351SAndres Villegasdef version : FF<"version", "Display the version of this program">; 14*939c0351SAndres Villegasdef : F<"V", "Print the version number and exit">, Alias<version>; 15*939c0351SAndres Villegasdef noWarningForNoSymbols : FF<"no_warning_for_no_symbols", "Do not warn about files that have no symbols">; 16*939c0351SAndres Villegasdef warningsAsErrors : FF<"warnings_as_errors", "Treat warnings as errors">; 17*939c0351SAndres Villegasdef static : Flag<["-", "--"], "static">, HelpText<"Produce a statically linked library from the input files">; 18*939c0351SAndres Villegasdef outputFile : S<"o", "Specify output filename">, MetaVarName<"<filename>">; 19*939c0351SAndres Villegasdef fileList : SS<"filelist", "Pass in file containing a list of filenames">, MetaVarName<"<listfile[,dirname]>">; 20*939c0351SAndres Villegasdef archType : SS<"arch_only", "Specify architecture type for output library">, MetaVarName<"<arch_type>">; 21*939c0351SAndres Villegasdef libraries : JS<"l", "l<x> searches for the library libx.a in the library search path. If the string 'x'"# 22*939c0351SAndres Villegas " ends with '.o', then the library 'x' is searched for without prepending 'lib' or appending '.a'">, MetaVarName<"<x>">; 23*939c0351SAndres Villegasdef librarySearchDirs : JS<"L", "L<dir> adds <dir> to the list of directories in which to search for libraries">, MetaVarName<"<dir>">; 24*939c0351SAndres Villegasdef ignoredSyslibRoot : SS<"syslibroot", "">, Flags<[HelpHidden]>; 25*939c0351SAndres Villegasdef dependencyInfoPath : SS<"dependency_info", "Write an Xcode dependency info file describing the dependencies of the created library">, MetaVarName<"<string>">; 26