blob: 4bc4d7c4b5a477c1293b42aa25ecb6c74122acda [file] [log] [blame]
Rui Ueyama411c63602015-05-28 19:09:301include "llvm/Option/OptParser.td"
2
3// link.exe accepts options starting with either a dash or a slash.
4
5// Flag that takes no arguments.
Nico Weber4b81e9f2019-05-07 14:15:356class F<string name> : Flag<["/", "-", "/?", "-?"], name>;
Rui Ueyama411c63602015-05-28 19:09:307
8// Flag that takes one argument after ":".
9class P<string name, string help> :
Nico Weber4b81e9f2019-05-07 14:15:3510 Joined<["/", "-", "/?", "-?"], name#":">, HelpText<help>;
Rui Ueyama411c63602015-05-28 19:09:3011
Martin Storsjö45c4c542020-10-03 22:29:4512// Same as P<> above, but without help texts, for private undocumented
13// options.
14class P_priv<string name> :
15 Joined<["/", "-", "/?", "-?"], name#":">;
16
Shoaib Meenai59bf3622017-10-24 21:17:1617// Boolean flag which can be suffixed by ":no". Using it unsuffixed turns the
18// flag on and using it suffixed by ":no" turns it off.
19multiclass B<string name, string help_on, string help_off> {
20 def "" : F<name>, HelpText<help_on>;
21 def _no : F<name#":no">, HelpText<help_off>;
Rui Ueyama411c63602015-05-28 19:09:3022}
23
Martin Storsjö7f0e6c32020-04-25 21:49:4424// Same as B<> above, but without help texts, for private undocumented
25// options.
26multiclass B_priv<string name> {
27 def "" : F<name>;
28 def _no : F<name#":no">;
29}
30
Rui Ueyama411c63602015-05-28 19:09:3031def align : P<"align", "Section alignment">;
Martin Storsjod2752aa2017-08-14 19:07:2732def aligncomm : P<"aligncomm", "Set common symbol alignment">;
Rui Ueyama411c63602015-05-28 19:09:3033def alternatename : P<"alternatename", "Define weak alias">;
34def base : P<"base", "Base address of the program">;
Nico Webercac2b332018-05-10 18:19:0235def color_diagnostics: Flag<["--"], "color-diagnostics">,
Nico Weberbaa2aa22020-11-17 17:15:4236 HelpText<"Alias for --color-diagnostics=always">;
37def no_color_diagnostics: Flag<["--"], "no-color-diagnostics">,
38 HelpText<"Alias for --color-diagnostics=never">;
Nico Webercac2b332018-05-10 18:19:0239def color_diagnostics_eq: Joined<["--"], "color-diagnostics=">,
Nico Weberbaa2aa22020-11-17 17:15:4240 HelpText<"Use colors in diagnostics (default: auto)">,
41 MetaVarName<"[auto,always,never]">;
Rui Ueyama411c63602015-05-28 19:09:3042def defaultlib : P<"defaultlib", "Add the library to the list of input files">;
43def delayload : P<"delayload", "Delay loaded DLL name">;
Peter Kastingc5fb05f2022-02-16 14:20:0344def diasdkdir : P<"diasdkdir", "Set the location of the DIA SDK">;
Haohai Wen2a631a82023-07-01 00:58:5645def dwodir : P<"dwodir",
46 "Directory to store .dwo files when LTO and debug fission are used">;
Rui Ueyama411c63602015-05-28 19:09:3047def entry : P<"entry", "Name of entry point symbol">;
Bob Haarmanac8f7fc2017-04-05 00:43:5448def errorlimit : P<"errorlimit",
49 "Maximum number of errors to emit before stopping (0 = no limit)">;
Martin Storsjöd1da6462022-07-18 20:43:0250def exclude_symbols : P<"exclude-symbols", "Exclude symbols from automatic export">,
51 MetaVarName<"<symbol[,symbol,...]>">;
Rui Ueyama411c63602015-05-28 19:09:3052def export : P<"export", "Export a function">;
53// No help text because /failifmismatch is not intended to be used by the user.
54def failifmismatch : P<"failifmismatch", "">;
Rui Ueyama74de6202019-05-24 12:42:3655def filealign : P<"filealign", "Section alignment in the output file">;
Alexandre Ganead307c4c2019-02-23 01:46:1856def functionpadmin : F<"functionpadmin">;
Nico Weberc7d8cc42019-09-14 23:41:4257def functionpadmin_opt : P<"functionpadmin",
58 "Prepares an image for hotpatching">;
Aleksei Nurmukhametov76947e02023-11-08 20:21:0559def dependentloadflag : F<"dependentloadflag">;
60def dependentloadflag_opt : P<"dependentloadflag",
61 "Sets the default load flags used to resolve the statically linked imports of a module">;
Reid Kleckneraf2f7da2018-02-06 01:58:2662def guard : P<"guard", "Control flow guard">;
Rui Ueyama411c63602015-05-28 19:09:3063def heap : P<"heap", "Size of the heap">;
Bob Haarmane90ac012017-12-28 07:02:1364def ignore : P<"ignore", "Specify warning codes to ignore">;
Rui Ueyama411c63602015-05-28 19:09:3065def implib : P<"implib", "Import library name">;
Tobias Hietaeb4eef92022-04-12 14:06:4666def noimplib : F<"noimplib">,
67 HelpText<"Don't output an import lib">;
Nico Weberc421fe52018-07-14 04:07:5168def lib : F<"lib">,
69 HelpText<"Act like lib.exe; must be first argument if present">;
Rui Ueyama411c63602015-05-28 19:09:3070def libpath : P<"libpath", "Additional library search path">;
Nico Webera0994cb2020-11-27 18:33:5571def linkrepro : Joined<["/", "-", "/?", "-?"], "linkrepro:">,
72 MetaVarName<"directory">,
73 HelpText<"Write repro.tar containing inputs and command to reproduce link">;
Nico Weberd48ea5d2019-09-13 13:13:5274def lldignoreenv : F<"lldignoreenv">,
75 HelpText<"Ignore environment variables like %LIB%">;
Nico Weberc7d8cc42019-09-14 23:41:4276def lldltocache : P<"lldltocache",
77 "Path to ThinLTO cached object file directory">;
78def lldltocachepolicy : P<"lldltocachepolicy",
79 "Pruning policy for the ThinLTO cache">;
Bob Haarman69b196d2017-02-08 18:36:4180def lldsavetemps : F<"lldsavetemps">,
Sam Clegg299b0e52021-01-18 19:39:2881 HelpText<"Save intermediate LTO compilation results">;
chrulski-intela9fe23c2024-03-20 15:02:4382def lto_sample_profile: P<"lto-sample-profile", "Sample profile file path">;
Rui Ueyama411c63602015-05-28 19:09:3083def machine : P<"machine", "Specify target platform">;
84def merge : P<"merge", "Combine sections">;
85def mllvm : P<"mllvm", "Options to pass to LLVM">;
86def nodefaultlib : P<"nodefaultlib", "Remove a default library">;
87def opt : P<"opt", "Control optimizations">;
Rui Ueyama57175aa2018-01-27 00:34:4688def order : P<"order", "Put functions in order">;
Rui Ueyama411c63602015-05-28 19:09:3089def out : P<"out", "Path to file to write output">;
Zachary Turnerf2282762018-03-23 19:57:2590def natvis : P<"natvis", "Path to natvis file to embed in the PDB">;
Rui Ueyama411c63602015-05-28 19:09:3091def pdb : P<"pdb", "PDB file path">;
Peter Collingbournec8f5c052018-04-20 22:11:2892def pdbaltpath : P<"pdbaltpath", "PDB file path to embed in the image">;
Nico Weberf964ca82021-10-30 15:22:5593def pdbpagesize : P<"pdbpagesize", "PDB page size">;
94def pdbstripped : P<"pdbstripped", "Stripped PDB file path">;
Eric Astora39b14f2020-04-07 20:16:2295def pdbstream : Joined<["/", "-", "/?", "-?"], "pdbstream:">,
96 MetaVarName<"<name>=<file>">,
97 HelpText<"Embed the contents of <file> in the PDB as named stream <name>">;
Rui Ueyama411c63602015-05-28 19:09:3098def section : P<"section", "Specify section attributes">;
99def stack : P<"stack", "Size of the stack">;
100def stub : P<"stub", "Specify DOS stub file">;
101def subsystem : P<"subsystem", "Specify subsystem">;
Zachary Turnerc8dd6cc2018-05-17 15:11:01102def timestamp : P<"timestamp", "Specify the PE header timestamp">;
Peter Kastingc5fb05f2022-02-16 14:20:03103def vctoolsdir : P<"vctoolsdir", "Set the location of the VC tools">;
104def vctoolsversion : P<"vctoolsversion",
105 "Specify which VC tools version to use">;
Rui Ueyama411c63602015-05-28 19:09:30106def version : P<"version", "Specify a version number in the PE header">;
Nico Weberc7d8cc42019-09-14 23:41:42107def wholearchive_file : P<"wholearchive",
108 "Include all object files from this library">;
Peter Kastingc5fb05f2022-02-16 14:20:03109def winsdkdir : P<"winsdkdir", "Set the location of the Windows SDK">;
110def winsdkversion : P<"winsdkversion", "Specify which SDK version to use">;
111def winsysroot : P<"winsysroot",
112 "Adds several subdirectories to the library search paths">;
Rui Ueyama411c63602015-05-28 19:09:30113
Nico Weber4b81e9f2019-05-07 14:15:35114def disallowlib : Joined<["/", "-", "/?", "-?"], "disallowlib:">,
115 Alias<nodefaultlib>;
Rui Ueyama411c63602015-05-28 19:09:30116
Nico Weber64fb85c2019-01-09 19:18:03117def manifest : F<"manifest">, HelpText<"Create .manifest file">;
118def manifest_colon : P<
119 "manifest",
120 "NO disables manifest output; EMBED[,ID=#] embeds manifest as resource in the image">;
Rui Ueyama411c63602015-05-28 19:09:30121def manifestuac : P<"manifestuac", "User access control">;
Nico Weber64fb85c2019-01-09 19:18:03122def manifestfile : P<"manifestfile", "Manifest output path, with /manifest">;
123def manifestdependency : P<
124 "manifestdependency",
125 "Attributes for <dependency> element in manifest file; implies /manifest">;
126def manifestinput : P<
127 "manifestinput",
128 "Additional manifest inputs; only valid with /manifest:embed">;
Rui Ueyama411c63602015-05-28 19:09:30129
130// We cannot use multiclass P because class name "incl" is different
131// from its command line option name. We do this because "include" is
132// a reserved keyword in tablegen.
Nico Weber4b81e9f2019-05-07 14:15:35133def incl : Joined<["/", "-", "/?", "-?"], "include:">,
Rui Ueyama411c63602015-05-28 19:09:30134 HelpText<"Force symbol to be added to symbol table as undefined one">;
135
136// "def" is also a keyword.
Nico Weber4b81e9f2019-05-07 14:15:35137def deffile : Joined<["/", "-", "/?", "-?"], "def:">,
Rui Ueyama411c63602015-05-28 19:09:30138 HelpText<"Use module-definition file">;
139
Reid Kleckner981576d2015-07-31 16:40:38140def debug : F<"debug">, HelpText<"Embed a symbol table in the image">;
Will Wilson3cb18342018-09-24 15:28:03141def debug_opt : P<"debug", "Embed a symbol table in the image with option">;
Saleem Abdulrasoola2cca7e2016-08-08 22:02:44142def debugtype : P<"debugtype", "Debug Info Options">;
Reid Kleckner981576d2015-07-31 16:40:38143def dll : F<"dll">, HelpText<"Create a DLL">;
Rui Ueyamaf95ed692019-11-13 04:53:15144def driver : F<"driver">, HelpText<"Generate a Windows NT Kernel Mode Driver">;
145def driver_wdm : F<"driver:wdm">,
146 HelpText<"Set IMAGE_FILE_UP_SYSTEM_ONLY bit in PE header">;
147def driver_uponly : F<"driver:uponly">,
148 HelpText<"Set IMAGE_DLL_CHARACTERISTICS_WDM_DRIVER bit in PE header">;
149def driver_wdm_uponly : F<"driver:wdm,uponly">;
150def driver_uponly_wdm : F<"driver:uponly,wdm">;
Nico Weber64fb85c2019-01-09 19:18:03151def nodefaultlib_all : F<"nodefaultlib">,
152 HelpText<"Remove all default libraries">;
153def noentry : F<"noentry">,
154 HelpText<"Don't add reference to DllMainCRTStartup; only valid with /dll">;
Rui Ueyama411c63602015-05-28 19:09:30155def profile : F<"profile">;
Nico Weber64fb85c2019-01-09 19:18:03156def repro : F<"Brepro">,
157 HelpText<"Use a hash of the executable as the PE header timestamp">;
Nico Webera0994cb2020-11-27 18:33:55158def reproduce : Joined<["/", "-", "/?", "-?"], "reproduce:">,
159 MetaVarName<"filename">,
160 HelpText<"Write tar file containing inputs and command to reproduce link">;
Nico Weberc0838af2019-04-25 14:02:26161def swaprun : P<"swaprun",
162 "Comma-separated list of 'cd' or 'net'">;
163def swaprun_cd : F<"swaprun:cd">, Alias<swaprun>, AliasArgs<["cd"]>,
164 HelpText<"Make loader run output binary from swap instead of from CD">;
165def swaprun_net : F<"swaprun:net">, Alias<swaprun>, AliasArgs<["net"]>,
166 HelpText<"Make loader run output binary from swap instead of from network">;
Rui Ueyama411c63602015-05-28 19:09:30167def verbose : F<"verbose">;
Nico Weberc7d8cc42019-09-14 23:41:42168def wholearchive_flag : F<"wholearchive">,
169 HelpText<"Include all object files from all libraries">;
Qfrost3f558532023-01-02 09:20:15170def release : F<"release">,
171 HelpText<"Set the Checksum in the header of an PE file">;
Rui Ueyama411c63602015-05-28 19:09:30172
173def force : F<"force">,
Nico Weberc7d8cc42019-09-14 23:41:42174 HelpText<"Allow undefined and multiply defined symbols">;
Rui Ueyama11ca38f2018-09-13 22:05:10175def force_unresolved : F<"force:unresolved">,
Rui Ueyama411c63602015-05-28 19:09:30176 HelpText<"Allow undefined symbols when creating executables">;
Rui Ueyama11ca38f2018-09-13 22:05:10177def force_multiple : F<"force:multiple">,
178 HelpText<"Allow multiply defined symbols when creating executables">;
Nico Weber81862f82019-05-02 21:21:55179def force_multipleres : F<"force:multipleres">,
180 HelpText<"Allow multiply defined resources when creating executables">;
Nico Weber75196b92022-04-11 15:01:34181defm WX : B<"WX", "Treat warnings as errors",
182 "Don't treat warnings as errors (default)">;
Rui Ueyama411c63602015-05-28 19:09:30183
Shoaib Meenai59bf3622017-10-24 21:17:16184defm allowbind : B<"allowbind", "Enable DLL binding (default)",
185 "Disable DLL binding">;
186defm allowisolation : B<"allowisolation", "Enable DLL isolation (default)",
187 "Disable DLL isolation">;
Saleem Abdulrasool671029d2017-04-06 23:07:53188defm appcontainer : B<"appcontainer",
Shoaib Meenai59bf3622017-10-24 21:17:16189 "Image can only be run in an app container",
190 "Image can run outside an app container (default)">;
Rui Ueyamaa2923b22020-03-13 10:41:18191defm cetcompat : B<"cetcompat", "Mark executable image as compatible with Control-flow Enforcement Technology (CET) Shadow Stack",
192 "Don't mark executable image as compatible with Control-flow Enforcement Technology (CET) Shadow Stack (default)">;
Shoaib Meenai59bf3622017-10-24 21:17:16193defm dynamicbase : B<"dynamicbase", "Enable ASLR (default unless /fixed)",
194 "Disable ASLR (default when /fixed)">;
195defm fixed : B<"fixed", "Disable base relocations",
196 "Enable base relocations (default)">;
197defm highentropyva : B<"highentropyva",
198 "Enable 64-bit ASLR (default on 64-bit)",
199 "Disable 64-bit ASLR">;
Bob Haarman5ec44852018-01-31 23:44:00200defm incremental : B<"incremental",
201 "Keep original import library if contents are unchanged",
Nico Weberd657c252018-05-31 13:43:02202 "Overwrite import library even if contents are unchanged">;
Alvin Wong8fa0cfe2023-04-23 15:58:24203defm inferasanlibs : B<"inferasanlibs",
204 "Unused, generates a warning",
205 "No effect (default)">;
Nico Weberd657c252018-05-31 13:43:02206defm integritycheck : B<"integritycheck",
207 "Set FORCE_INTEGRITY bit in PE header",
208 "No effect (default)">;
Shoaib Meenai59bf3622017-10-24 21:17:16209defm largeaddressaware : B<"largeaddressaware",
210 "Enable large addresses (default on 64-bit)",
211 "Disable large addresses (default on 32-bit)">;
212defm nxcompat : B<"nxcompat", "Enable data execution prevention (default)",
213 "Disable data execution provention">;
214defm safeseh : B<"safeseh",
215 "Produce an image with Safe Exception Handler (only for x86)",
216 "Don't produce an image with Safe Exception Handler">;
217defm tsaware : B<"tsaware",
218 "Create Terminal Server aware executable (default)",
219 "Create non-Terminal Server aware executable">;
Rui Ueyama411c63602015-05-28 19:09:30220
221def help : F<"help">;
Nico Weber4b81e9f2019-05-07 14:15:35222
223// /?? and -?? must be before /? and -? to not confuse lib/Options.
224def help_q : Flag<["/??", "-??", "/?", "-?"], "">, Alias<help>;
Rui Ueyama411c63602015-05-28 19:09:30225
Rui Ueyama96401732015-09-21 23:43:31226// LLD extensions
Martin Storsjö7f0e6c32020-04-25 21:49:44227defm auto_import : B_priv<"auto-import">;
228defm runtime_pseudo_reloc : B_priv<"runtime-pseudo-reloc">;
Bob Haarman7dc5e7a02019-09-03 20:32:16229def end_lib : F<"end-lib">,
Nico Webera0994cb2020-11-27 18:33:55230 HelpText<"End group of objects treated as if they were in a library">;
Martin Storsjo272d8c12019-02-19 21:57:44231def exclude_all_symbols : F<"exclude-all-symbols">;
Martin Storsjo7f71acd2017-10-12 05:37:13232def export_all_symbols : F<"export-all-symbols">;
Nico Weber020d92c2019-03-11 23:02:18233defm demangle : B<"demangle",
234 "Demangle symbols in output (default)",
235 "Do not demangle symbols in output">;
Martin Storsjoc02f6bf2019-06-08 18:26:18236def include_optional : Joined<["/", "-", "/?", "-?"], "includeoptional:">,
237 HelpText<"Add symbol as undefined, but allow it to remain undefined">;
Martin Storsjo53518912018-03-14 20:17:16238def kill_at : F<"kill-at">;
Martin Storsjöa67ae8c2023-10-20 20:44:44239defm lld_allow_duplicate_weak : B_priv<"lld-allow-duplicate-weak">;
Matheus Izvekov3923e612023-10-02 20:54:43240def lldemit : P<"lldemit", "Specify output type">;
Martin Storsjo31fe4cd2017-09-13 19:29:39241def lldmingw : F<"lldmingw">;
Martin Storsjö745eb022020-07-27 20:44:41242def noseh : F<"noseh">;
Martin Storsjö45c4c542020-10-03 22:29:45243def osversion : P_priv<"osversion">;
Nico Weber4b81e9f2019-05-07 14:15:35244def output_def : Joined<["/", "-", "/?", "-?"], "output-def:">;
Takuto Ikutad8559282018-07-19 04:56:22245def pdb_source_path : P<"pdbsourcepath",
Nico Weberc7d8cc42019-09-14 23:41:42246 "Base path used to make relative source file path absolute in PDB">;
Nico Webera05cbb82017-09-05 23:46:45247def rsp_quoting : Joined<["--"], "rsp-quoting=">,
248 HelpText<"Quoting style for response files, 'windows' (default) or 'posix'">;
Bob Haarman7dc5e7a02019-09-03 20:32:16249def start_lib : F<"start-lib">,
Nico Webera0994cb2020-11-27 18:33:55250 HelpText<"Start group of objects treated as if they were in a library">;
Martin Storsjöce211c52021-06-17 18:51:37251defm stdcall_fixup : B_priv<"stdcall-fixup">;
Bob Haarman63efb282019-07-11 18:03:14252def thinlto_emit_imports_files :
253 F<"thinlto-emit-imports-files">,
254 HelpText<"Emit .imports files with -thinlto-index-only">;
255def thinlto_index_only :
256 F<"thinlto-index-only">,
257 HelpText<"Instead of linking, emit ThinLTO index files">;
258def thinlto_index_only_arg : P<
259 "thinlto-index-only",
260 "-thinlto-index-only and also write native module names to file">;
Bob Haarman5011b832019-07-11 18:48:58261def thinlto_object_suffix_replace : P<
262 "thinlto-object-suffix-replace",
263 "'old;new' replace old suffix with new suffix in ThinLTO index">;
264def thinlto_prefix_replace: P<
265 "thinlto-prefix-replace",
266 "'old;new' replace old prefix with new prefix in ThinLTO outputs">;
Bob Haarman5375b942019-08-21 18:24:59267def lto_obj_path : P<
268 "lto-obj-path",
269 "output native object for merged LTO unit to this path">;
Yolanda Chen4f9c61e2021-03-25 02:55:18270def lto_cs_profile_generate: F<"lto-cs-profile-generate">,
271 HelpText<"Perform context sensitive PGO instrumentation">;
272def lto_cs_profile_file : P<"lto-cs-profile-file",
273 "Context sensitive profile file path">;
Yolanda Chen8fa16cc2021-08-11 16:45:55274defm lto_pgo_warn_mismatch: B<
275 "lto-pgo-warn-mismatch",
276 "turn on warnings about profile cfg mismatch (default)>",
277 "turn off warnings about profile cfg mismatch">;
Rui Ueyamaa4cf97b2017-10-23 14:57:53278def dash_dash_version : Flag<["--"], "version">,
Nico Weber77fb45e2020-12-22 20:51:20279 HelpText<"Display the version number and exit">;
Fangrui Songeb4663d2020-03-17 19:40:19280def threads
281 : P<"threads", "Number of threads. '1' disables multi-threading. By "
282 "default all available hardware threads are used">;
Zequan Wu763671f2020-07-21 20:46:11283def call_graph_ordering_file: P<
Tobias Hieta2af43852022-04-12 11:59:45284 "call-graph-ordering-file",
Zequan Wu763671f2020-07-21 20:46:11285 "Layout sections to optimize the given callgraph">;
286defm call_graph_profile_sort: B<
287 "call-graph-profile-sort",
288 "Reorder sections with call graph profile (default)",
289 "Do not reorder sections with call graph profile">;
290def print_symbol_order: P<
291 "print-symbol-order",
292 "Print a symbol order specified by /call-graph-ordering-file and "
293 "/call-graph-profile-sort into the specified file">;
Martin Storsjö3785a412020-10-06 10:54:49294def wrap : P_priv<"wrap">;
Rui Ueyama96401732015-09-21 23:43:31295
Alex Brachetfd9962e2022-07-11 21:31:01296def vfsoverlay : P<"vfsoverlay", "Path to a vfsoverlay yaml file to optionally look for /defaultlib's in">;
297
Reid Kleckner7aa65982024-07-23 22:11:17298def show_timing : F<"time">,
299 HelpText<"Print the time spent in each phase of linking">;
Alexandre Ganea356139b2023-10-06 02:33:58300def time_trace_eq: Joined<["--"], "time-trace=">, MetaVarName<"<file>">,
301 HelpText<"Record time trace to <file>">;
302def : Flag<["--"], "time-trace">, Alias<time_trace_eq>,
303 HelpText<"Record time trace to file next to output">;
304
305def time_trace_granularity_eq: Joined<["--"], "time-trace-granularity=">,
306 HelpText<"Minimum time granularity (in microseconds) traced by time profiler">;
307
Zequan Wuaaf3a8d2023-12-05 19:57:45308defm build_id: B<
309 "build-id",
310 "Generate build ID (always on when generating PDB)",
311 "Do not Generate build ID">;
312
Peter Collingbournebe549552015-06-26 18:58:24313// Flags for debugging
Hans Wennborg1818e652016-12-09 20:54:44314def lldmap : F<"lldmap">;
Nico Weber66dc44f2021-08-27 02:01:00315def lldmap_file : P_priv<"lldmap">;
Sylvain Audib91905a2020-03-23 21:06:48316def map : F<"map">;
Nico Weber66dc44f2021-08-27 02:01:00317def map_file : P_priv<"map">;
Pengxuan Zheng7b317562022-09-20 00:21:21318def map_info : P<"mapinfo", "Include the specified information in a map file">;
Tobias Hieta33f93422023-07-12 07:22:06319def print_search_paths : F<"print-search-paths">;
Alexandre Ganea3e60ee92019-03-14 18:45:08320def summary : F<"summary">;
Rui Ueyama411c63602015-05-28 19:09:30321
322//==============================================================================
323// The flags below do nothing. They are defined only for link.exe compatibility.
324//==============================================================================
325
Rui Ueyama411c63602015-05-28 19:09:30326def ignoreidl : F<"ignoreidl">;
Nico Weber34ac7a72021-08-27 02:03:26327def ltcg : F<"ltcg">;
oberrich7f9c2642022-10-03 13:03:14328def assemblydebug : F<"assemblydebug">;
Rui Ueyama411c63602015-05-28 19:09:30329def nologo : F<"nologo">;
Rui Ueyama432383172015-07-29 21:01:15330def throwingnew : F<"throwingnew">;
Rui Ueyama3c4737d2015-08-11 16:46:08331def editandcontinue : F<"editandcontinue">;
Reid Kleckner9cd77ce2016-03-25 18:09:29332def fastfail : F<"fastfail">;
Pengxuan Zhengb5e49cd2022-06-21 01:44:32333def kernel : F<"kernel">;
Pengxuan Zhengdec16142022-06-20 22:14:44334def pdbcompress : F<"pdbcompress">;
oberrich7f9c2642022-10-03 13:03:14335def emitpogophaseinfo : F<"emitpogophaseinfo">;
Rui Ueyama411c63602015-05-28 19:09:30336
Nico Weber66dc44f2021-08-27 02:01:00337def delay : P_priv<"delay">;
338def errorreport : P_priv<"errorreport">;
339def idlout : P_priv<"idlout">;
Nico Weber34ac7a72021-08-27 02:03:26340def ilk : P_priv<"ilk">;
341def ltcg_opt : P_priv<"ltcg">;
oberrich7f9c2642022-10-03 13:03:14342def assemblydebug_opt : P_priv<"assemblydebug">;
Nico Weber34ac7a72021-08-27 02:03:26343def ltcgout : P_priv<"ltcgout">;
Nico Weber66dc44f2021-08-27 02:01:00344def maxilksize : P_priv<"maxilksize">;
345def tlbid : P_priv<"tlbid">;
346def tlbout : P_priv<"tlbout">;
347def verbose_all : P_priv<"verbose">;
348def guardsym : P_priv<"guardsym">;