Skip to content

Commit a6c3900

Browse files
mati865mstorsjo
authored andcommitted
[LLD][MinGW] Accept joined format for --stack
Postgresql uses `--stack=` in its Makefile. Downstream issue: msys2/MINGW-packages#9167 Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D107237 (cherry picked from commit 05b025e)
1 parent 332ac2f commit a6c3900

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lld/MinGW/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ defm output_def: Eq<"output-def", "Output def file">;
8585
defm section_alignment: Eq<"section-alignment", "Set section alignment">;
8686
def shared: F<"shared">, HelpText<"Build a shared object">;
8787
defm subs: Eq<"subsystem", "Specify subsystem">;
88-
def stack: S<"stack">;
88+
defm stack: Eq<"stack", "Set size of the initial stack">;
8989
def strip_all: F<"strip-all">,
9090
HelpText<"Omit all symbol information from the output binary">;
9191
def strip_debug: F<"strip-debug">,

lld/test/MinGW/driver.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ SUBSYSTEM_WINDOWS: -subsystem:windows,7.8
8888

8989
RUN: ld.lld -### foo.o -m i386pep -stack 4194304,8192 2>&1 | FileCheck -check-prefix=STACK %s
9090
RUN: ld.lld -### foo.o -m i386pep --stack 4194304,8192 2>&1 | FileCheck -check-prefix=STACK %s
91+
RUN: ld.lld -### foo.o -m i386pep --stack=4194304,8192 2>&1 | FileCheck -check-prefix=STACK %s
9192
STACK: -stack:4194304,8192
9293

9394
RUN: ld.lld -### foo.o -m i386pep -verbose 2>&1 | FileCheck -check-prefix=VERBOSE %s

0 commit comments

Comments
 (0)