[lld] 05b025e - [LLD][MinGW] Accept joined format for --stack

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 1 13:29:57 PDT 2021


Author: Mateusz Mikuła
Date: 2021-08-01T23:27:00+03:00
New Revision: 05b025edf4aecf19634e01b0974126e53a927a50

URL: https://github.com/llvm/llvm-project/commit/05b025edf4aecf19634e01b0974126e53a927a50
DIFF: https://github.com/llvm/llvm-project/commit/05b025edf4aecf19634e01b0974126e53a927a50.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

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


        


More information about the llvm-commits mailing list