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

Michael Kruse via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 20 14:29:30 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]>;
----------------
Meinersbur wrote:

Why `/?` and `-?` in the permitted option prefix list? Wouldn't this allow e.g. `-?out:`?

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


More information about the cfe-commits mailing list