Skip to content

Commit

Permalink
[MinGW] Support --out-implib=name in addition to "--out-implib name"
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D39329

llvm-svn: 316692
  • Loading branch information
mstorsjo committed Oct 26, 2017
1 parent c0e7e76 commit 27af6b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lld/MinGW/Options.td
Expand Up @@ -19,6 +19,7 @@ def no_whole_archive: F<"no-whole-archive">,
def o: JoinedOrSeparate<["-"], "o">, MetaVarName<"<path>">,
HelpText<"Path to file to write output">;
def out_implib: Separate<["--"], "out-implib">, HelpText<"Import library name">;
def out_implib_eq: Joined<["--"], "out-implib=">, Alias<out_implib>;
def output_def: S<"output-def">, HelpText<"Output def file">;
def shared: F<"shared">, HelpText<"Build a shared object">;
def subs: S<"subsystem">, HelpText<"Specify subsystem">;
Expand Down
1 change: 1 addition & 0 deletions lld/test/MinGW/driver.test
Expand Up @@ -38,6 +38,7 @@ RUN: ld.lld -### foo.o -m i386pep -o bar.exe | FileCheck -check-prefix=OUT %s
OUT: -out:bar.exe

RUN: ld.lld -### foo.o -m i386pep --out-implib bar | FileCheck -check-prefix=IMPLIB %s
RUN: ld.lld -### foo.o -m i386pep --out-implib=bar | FileCheck -check-prefix=IMPLIB %s
IMPLIB: -implib:bar

RUN: ld.lld -### foo.o -m i386pep -out-implib bar | FileCheck -check-prefix=NOIMPLIB %s
Expand Down

0 comments on commit 27af6b0

Please sign in to comment.