aboutsummaryrefslogtreecommitdiff
path: root/lld/MinGW
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2023-10-09 23:19:41 +0300
committerGitHub <noreply@github.com>2023-10-09 23:19:41 +0300
commit3548b79557d193d5bb2acaf8f443a07846f1e14a (patch)
tree224696a7558d81a62f704855e2bc7b54441e42df /lld/MinGW
parent5e3f43e16ce741a48dee21ddc042c3811a7320ce (diff)
downloadllvm-3548b79557d193d5bb2acaf8f443a07846f1e14a.zip
llvm-3548b79557d193d5bb2acaf8f443a07846f1e14a.tar.gz
llvm-3548b79557d193d5bb2acaf8f443a07846f1e14a.tar.bz2
[LLD] [MinGW] Handle the --dll option (#68575)
Treat this as an alias for the --shared option. In practice in GNU ld, they aren't exact aliases but there are small subtle differences in what happens and what doesn't, when they are set, but those differences are probably not intended by users who might be using the --dll option (which gets passed by -mdll in the compiler driver), and the differences are within the area where small details differ between LLD and GNU ld anyway.
Diffstat (limited to 'lld/MinGW')
-rw-r--r--lld/MinGW/Options.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td
index f59bd5b..fa4c4ec 100644
--- a/lld/MinGW/Options.td
+++ b/lld/MinGW/Options.td
@@ -203,6 +203,7 @@ def alias_Bdynamic_dy: Flag<["-"], "dy">, Alias<Bdynamic>;
def alias_Bstatic_dn: Flag<["-"], "dn">, Alias<Bstatic>;
def alias_Bstatic_non_shared: Flag<["-"], "non_shared">, Alias<Bstatic>;
def alias_Bstatic_static: Flag<["-"], "static">, Alias<Bstatic>;
+def alias_dll: F<"dll">, Alias<shared>;
def alias_entry_e: JoinedOrSeparate<["-"], "e">, Alias<entry>;
def alias_no_dynamicbase: F<"no-dynamicbase">, Alias<disable_dynamicbase>;
def alias_strip_s: Flag<["-"], "s">, Alias<strip_all>;