aboutsummaryrefslogtreecommitdiff
path: root/lld/MinGW
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2024-01-09 00:01:21 +0200
committerGitHub <noreply@github.com>2024-01-09 00:01:21 +0200
commitf84bfa2f92d2aa3329bc06902a12c0f4c54d7297 (patch)
tree2b47d1dc6e05bc226b733a7bc2f0a55eb778d7bc /lld/MinGW
parentf700d748f0447b6a761eb9d42575b28e0af98708 (diff)
downloadllvm-f84bfa2f92d2aa3329bc06902a12c0f4c54d7297.zip
llvm-f84bfa2f92d2aa3329bc06902a12c0f4c54d7297.tar.gz
llvm-f84bfa2f92d2aa3329bc06902a12c0f4c54d7297.tar.bz2
[LLD] [MinGW] Sync --thinlto-cache-dir option details with ELF (#77010)
Disallow using the form with a separate argument, "--thinlto-cache-dir dir", allow only the one with equals, "--thintlo-cache-dir=dir". This is the only form that actually was tested when this was added in f794808bb9ec06966a67fe33d41a13b9601768f8, and matches the ELF side, where only the form with an equals is supported (and this was also the case at the time when this option was added to the MinGW linker).
Diffstat (limited to 'lld/MinGW')
-rw-r--r--lld/MinGW/Options.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td
index d4a49cd..d8471d5 100644
--- a/lld/MinGW/Options.td
+++ b/lld/MinGW/Options.td
@@ -186,8 +186,8 @@ def appcontainer: F<"appcontainer">, HelpText<"Set the appcontainer flag in the
defm delayload: Eq<"delayload", "DLL to load only on demand">;
defm mllvm: EqNoHelp<"mllvm">;
defm pdb: Eq<"pdb", "Output PDB debug info file, chosen implicitly if the argument is empty">;
-defm thinlto_cache_dir: EqLong<"thinlto-cache-dir",
- "Path to ThinLTO cached object file directory">;
+def thinlto_cache_dir: JJ<"thinlto-cache-dir=">,
+ HelpText<"Path to ThinLTO cached object file directory">;
defm Xlink : Eq<"Xlink", "Pass <arg> to the COFF linker">, MetaVarName<"<arg>">;
defm guard_cf : B<"guard-cf", "Enable Control Flow Guard" ,
"Do not enable Control Flow Guard (default)">;