Skip to content

Commit 64fb85c

Browse files
committedJan 9, 2019
lld-link: Add help strings for /manifest, /nodefaultlib, /noentry; tweak manifest help strings
My main motivation is that I can never remember /nodefaultlib and `lld-link /? | grep no` didn't display it due to it not having a help string. Differential Revision: https://reviews.llvm.org/D56502 llvm-svn: 350750
1 parent 3ef0f44 commit 64fb85c

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed
 

‎lld/COFF/Options.td

+17-9
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,18 @@ def wholearchive_file : P<"wholearchive", "Include all object files from this ar
6666

6767
def disallowlib : Joined<["/", "-", "-?"], "disallowlib:">, Alias<nodefaultlib>;
6868

69-
def manifest : F<"manifest">;
70-
def manifest_colon : P<"manifest", "Create manifest file">;
69+
def manifest : F<"manifest">, HelpText<"Create .manifest file">;
70+
def manifest_colon : P<
71+
"manifest",
72+
"NO disables manifest output; EMBED[,ID=#] embeds manifest as resource in the image">;
7173
def manifestuac : P<"manifestuac", "User access control">;
72-
def manifestfile : P<"manifestfile", "Manifest file path">;
73-
def manifestdependency : P<"manifestdependency",
74-
"Attributes for <dependency> in manifest file">;
75-
def manifestinput : P<"manifestinput", "Specify manifest file">;
74+
def manifestfile : P<"manifestfile", "Manifest output path, with /manifest">;
75+
def manifestdependency : P<
76+
"manifestdependency",
77+
"Attributes for <dependency> element in manifest file; implies /manifest">;
78+
def manifestinput : P<
79+
"manifestinput",
80+
"Additional manifest inputs; only valid with /manifest:embed">;
7681

7782
// We cannot use multiclass P because class name "incl" is different
7883
// from its command line option name. We do this because "include" is
@@ -89,10 +94,13 @@ def debug_opt : P<"debug", "Embed a symbol table in the image with option">;
8994
def debugtype : P<"debugtype", "Debug Info Options">;
9095
def dll : F<"dll">, HelpText<"Create a DLL">;
9196
def driver : P<"driver", "Generate a Windows NT Kernel Mode Driver">;
92-
def nodefaultlib_all : F<"nodefaultlib">;
93-
def noentry : F<"noentry">;
97+
def nodefaultlib_all : F<"nodefaultlib">,
98+
HelpText<"Remove all default libraries">;
99+
def noentry : F<"noentry">,
100+
HelpText<"Don't add reference to DllMainCRTStartup; only valid with /dll">;
94101
def profile : F<"profile">;
95-
def repro : F<"Brepro">, HelpText<"Use a hash of the executable as the PE header timestamp">;
102+
def repro : F<"Brepro">,
103+
HelpText<"Use a hash of the executable as the PE header timestamp">;
96104
def swaprun_cd : F<"swaprun:cd">;
97105
def swaprun_net : F<"swaprun:net">;
98106
def verbose : F<"verbose">;

0 commit comments

Comments
 (0)
Please sign in to comment.