diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-01-09 19:18:03 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-01-09 19:18:03 +0000 |
commit | 64993630dfaf330f2c64faadbea4587d115a8af7 (patch) | |
tree | 56944f475ad854a17ef808337efe445da1a0684a /lld | |
parent | 2e9956bd70bdfa7df6dea9ded8aa1f62cb6efd58 (diff) |
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
Diffstat (limited to 'lld')
-rw-r--r-- | lld/COFF/Options.td | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/lld/COFF/Options.td b/lld/COFF/Options.td index f5dcd274089..acf1bc5c8b1 100644 --- a/lld/COFF/Options.td +++ b/lld/COFF/Options.td @@ -66,13 +66,18 @@ def wholearchive_file : P<"wholearchive", "Include all object files from this ar def disallowlib : Joined<["/", "-", "-?"], "disallowlib:">, Alias<nodefaultlib>; -def manifest : F<"manifest">; -def manifest_colon : P<"manifest", "Create manifest file">; +def manifest : F<"manifest">, HelpText<"Create .manifest file">; +def manifest_colon : P< + "manifest", + "NO disables manifest output; EMBED[,ID=#] embeds manifest as resource in the image">; def manifestuac : P<"manifestuac", "User access control">; -def manifestfile : P<"manifestfile", "Manifest file path">; -def manifestdependency : P<"manifestdependency", - "Attributes for <dependency> in manifest file">; -def manifestinput : P<"manifestinput", "Specify manifest file">; +def manifestfile : P<"manifestfile", "Manifest output path, with /manifest">; +def manifestdependency : P< + "manifestdependency", + "Attributes for <dependency> element in manifest file; implies /manifest">; +def manifestinput : P< + "manifestinput", + "Additional manifest inputs; only valid with /manifest:embed">; // We cannot use multiclass P because class name "incl" is different // 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">; def debugtype : P<"debugtype", "Debug Info Options">; def dll : F<"dll">, HelpText<"Create a DLL">; def driver : P<"driver", "Generate a Windows NT Kernel Mode Driver">; -def nodefaultlib_all : F<"nodefaultlib">; -def noentry : F<"noentry">; +def nodefaultlib_all : F<"nodefaultlib">, + HelpText<"Remove all default libraries">; +def noentry : F<"noentry">, + HelpText<"Don't add reference to DllMainCRTStartup; only valid with /dll">; def profile : F<"profile">; -def repro : F<"Brepro">, HelpText<"Use a hash of the executable as the PE header timestamp">; +def repro : F<"Brepro">, + HelpText<"Use a hash of the executable as the PE header timestamp">; def swaprun_cd : F<"swaprun:cd">; def swaprun_net : F<"swaprun:net">; def verbose : F<"verbose">; |