Skip to content

Commit

Permalink
[MinGW] Support the --subsystem=val option in joined form
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D63250

llvm-svn: 363433
  • Loading branch information
mstorsjo committed Jun 14, 2019
1 parent 6f047ae commit ff4e0a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lld/MinGW/Options.td
Expand Up @@ -57,6 +57,7 @@ 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">;
def subs_eq: J<"subsystem=">, Alias<subs>;
def stack: S<"stack">;
def strip_all: F<"strip-all">,
HelpText<"Omit all symbol information from the output binary">;
Expand Down
2 changes: 2 additions & 0 deletions lld/test/MinGW/driver.test
Expand Up @@ -57,6 +57,8 @@ MLLVM: -mllvm:bar -mllvm:baz

RUN: ld.lld -### foo.o -m i386pep -subsystem console | FileCheck -check-prefix=SUBSYSTEM %s
RUN: ld.lld -### foo.o -m i386pep --subsystem console | FileCheck -check-prefix=SUBSYSTEM %s
RUN: ld.lld -### foo.o -m i386pep -subsystem=console | FileCheck -check-prefix=SUBSYSTEM %s
RUN: ld.lld -### foo.o -m i386pep --subsystem=console | FileCheck -check-prefix=SUBSYSTEM %s
SUBSYSTEM: -subsystem:console

RUN: ld.lld -### foo.o -m i386pep --major-os-version 7 --minor-os-version 8 | FileCheck -check-prefix=SUBSYSTEM_VERSION %s
Expand Down

0 comments on commit ff4e0a9

Please sign in to comment.