diff options
| author | Martin Storsjo <martin@martin.st> | 2019-06-14 17:50:39 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2019-06-14 17:50:39 +0000 |
| commit | ff4e0a9f3e4a30841e623c75d34b75345aac52fe (patch) | |
| tree | 72d9ca3384682a5d3a0fc91828d56758869ea058 | |
| parent | 6f047ae58babf8562bd9b7f1c25fec6b3aa7682b (diff) | |
| download | bcm5719-llvm-ff4e0a9f3e4a30841e623c75d34b75345aac52fe.tar.gz bcm5719-llvm-ff4e0a9f3e4a30841e623c75d34b75345aac52fe.zip | |
[MinGW] Support the --subsystem=val option in joined form
Differential Revision: https://reviews.llvm.org/D63250
llvm-svn: 363433
| -rw-r--r-- | lld/MinGW/Options.td | 1 | ||||
| -rw-r--r-- | lld/test/MinGW/driver.test | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td index eb2ce623c11..44de98dfc90 100644 --- a/lld/MinGW/Options.td +++ b/lld/MinGW/Options.td @@ -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">; diff --git a/lld/test/MinGW/driver.test b/lld/test/MinGW/driver.test index e80b6481a8b..cdd802e93f4 100644 --- a/lld/test/MinGW/driver.test +++ b/lld/test/MinGW/driver.test @@ -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 |

