Skip to content

Commit 09a0ee2

Browse files
committed
make: increase stack size for Windows
Signed-off-by: deadprogram <[email protected]>
1 parent b7a8448 commit 09a0ee2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,13 @@ ifeq ($(OS),Windows_NT)
123123
# LLVM compiled using MinGW on Windows appears to have problems with threads.
124124
# Without this flag, linking results in errors like these:
125125
# libLLVMSupport.a(Threading.cpp.obj):Threading.cpp:(.text+0x55): undefined reference to `std::thread::hardware_concurrency()'
126-
# LLVM_OPTION += -DLLVM_ENABLE_THREADS=OFF -DLLVM_ENABLE_PIC=OFF
126+
LLVM_OPTION += -DLLVM_ENABLE_THREADS=OFF -DLLVM_ENABLE_PIC=OFF
127127

128128
CGO_CPPFLAGS += -DCINDEX_NO_EXPORTS
129129
CGO_LDFLAGS += -static -static-libgcc -static-libstdc++
130130
CGO_LDFLAGS_EXTRA += -lversion
131131

132+
CGO_LDFLAGS += -Wl,-z,stack-size=0x100000
132133
USE_SYSTEM_BINARYEN ?= 1
133134

134135
else ifeq ($(shell uname -s),Darwin)

0 commit comments

Comments
 (0)