[clang] [LinkerWrapper] Accept some needed COFF linker arguments (PR #72889)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 20 15:00:10 PST 2023


================
@@ -126,3 +126,8 @@ def version : Flag<["--", "-"], "version">, Flags<[HelpHidden]>, Alias<v>;
 
 def whole_archive : Flag<["--", "-"], "whole-archive">, Flags<[HelpHidden]>;
 def no_whole_archive : Flag<["--", "-"], "no-whole-archive">, Flags<[HelpHidden]>;
+
+// COFF-style linker options.
+def out : Joined<["/", "-", "/?", "-?"], "out:">, Flags<[HelpHidden]>;
----------------
jhuber6 wrote:

I copied this from the COFF implementation of `lld-link` and assumed that it knew the flags better than I did.

https://github.com/llvm/llvm-project/pull/72889


More information about the cfe-commits mailing list