xref: /aosp_15_r20/external/llvm/lib/LibDriver/Options.td (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Workerinclude "llvm/Option/OptParser.td"
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker// lib.exe accepts options starting with either a dash or a slash.
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker// Flag that takes no arguments.
6*9880d681SAndroid Build Coastguard Workerclass F<string name> : Flag<["/", "-", "-?"], name>;
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker// Flag that takes one argument after ":".
9*9880d681SAndroid Build Coastguard Workerclass P<string name, string help> :
10*9880d681SAndroid Build Coastguard Worker      Joined<["/", "-", "-?"], name#":">, HelpText<help>;
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerdef libpath: P<"libpath", "Object file search path">;
13*9880d681SAndroid Build Coastguard Workerdef out    : P<"out", "Path to file to write output">;
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Workerdef llvmlibthin : F<"llvmlibthin">;
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Worker//==============================================================================
18*9880d681SAndroid Build Coastguard Worker// The flags below do nothing. They are defined only for lib.exe compatibility.
19*9880d681SAndroid Build Coastguard Worker//==============================================================================
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Workerclass QF<string name> : Joined<["/", "-", "-?"], name#":">;
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Workerdef ignore : QF<"ignore">;
24*9880d681SAndroid Build Coastguard Workerdef machine: QF<"machine">;
25*9880d681SAndroid Build Coastguard Workerdef nologo : F<"nologo">;
26