Author: Mateusz Mikuła Date: 2021-08-02T21:26:03+03:00 New Revision: a6c39006e59ce92469b3a9369ebafd7c07ef54a0
URL: https://github.com/llvm/llvm-project/commit/a6c39006e59ce92469b3a9369ebafd7c07ef54a0 DIFF: https://github.com/llvm/llvm-project/commit/a6c39006e59ce92469b3a9369ebafd7c07ef54a0.diff LOG: [LLD][MinGW] Accept joined format for --stack Postgresql uses `--stack=` in its Makefile. Downstream issue: https://github.com/msys2/MINGW-packages/pull/9167 Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D107237 (cherry picked from commit 05b025edf4aecf19634e01b0974126e53a927a50) Added: Modified: lld/MinGW/Options.td lld/test/MinGW/driver.test Removed: ################################################################################ diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td index e1a505240cb82..7b250614e434b 100644 --- a/lld/MinGW/Options.td +++ b/lld/MinGW/Options.td @@ -85,7 +85,7 @@ defm output_def: Eq<"output-def", "Output def file">; defm section_alignment: Eq<"section-alignment", "Set section alignment">; def shared: F<"shared">, HelpText<"Build a shared object">; defm subs: Eq<"subsystem", "Specify subsystem">; -def stack: S<"stack">; +defm stack: Eq<"stack", "Set size of the initial stack">; def strip_all: F<"strip-all">, HelpText<"Omit all symbol information from the output binary">; def strip_debug: F<"strip-debug">, diff --git a/lld/test/MinGW/driver.test b/lld/test/MinGW/driver.test index ab5ca4c5c791c..29ea69bd7ba94 100644 --- a/lld/test/MinGW/driver.test +++ b/lld/test/MinGW/driver.test @@ -88,6 +88,7 @@ SUBSYSTEM_WINDOWS: -subsystem:windows,7.8 RUN: ld.lld -### foo.o -m i386pep -stack 4194304,8192 2>&1 | FileCheck -check-prefix=STACK %s RUN: ld.lld -### foo.o -m i386pep --stack 4194304,8192 2>&1 | FileCheck -check-prefix=STACK %s +RUN: ld.lld -### foo.o -m i386pep --stack=4194304,8192 2>&1 | FileCheck -check-prefix=STACK %s STACK: -stack:4194304,8192 RUN: ld.lld -### foo.o -m i386pep -verbose 2>&1 | FileCheck -check-prefix=VERBOSE %s _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits