mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 12:45:08 +00:00
24 lines
1,000 B
Diff
24 lines
1,000 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tim Schumacher <timschumi@gmx.de>
|
|
Date: Mon, 10 Apr 2023 12:17:32 +0200
|
|
Subject: [PATCH] cmake: Increase the default stack size when running on
|
|
SerenityOS
|
|
|
|
---
|
|
llvm/cmake/modules/HandleLLVMOptions.cmake | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
|
|
index 59d2c7539..7c3b1ff6d 100644
|
|
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
|
|
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
|
|
@@ -455,6 +455,9 @@ elseif(MINGW) # FIXME: Also cygwin?
|
|
if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
append("-Wa,-mbig-obj" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
|
|
endif()
|
|
+elseif(SERENITYOS)
|
|
+ # SerenityOS sets a very low default stack size value, so increase it to 4MB manually.
|
|
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,stack-size=4194304")
|
|
endif()
|
|
|
|
option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON)
|