From 65eda4720d6663d4930b804d96d5e661c74b6092 Mon Sep 17 00:00:00 2001 From: misomosi Date: Thu, 9 Jul 2026 19:38:49 -0400 Subject: [PATCH 1/2] Increase stack size to stop stack ovflow --- src/threading.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/threading.cpp b/src/threading.cpp index bc92ad3f2..524c70e29 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -643,7 +643,7 @@ gb_internal void thread_init(ThreadPool *pool, Thread *t, isize idx) { gb_internal void thread_init_and_start(ThreadPool *pool, Thread *t, isize idx) { thread_init(pool, t, idx); - isize stack_size = 0; + isize stack_size = 1 * 1024 * 1024; // 1 MiB (LLVM takes a lot of stack space) #if defined(GB_SYSTEM_WINDOWS) t->win32_handle = CreateThread(NULL, stack_size, internal_thread_proc, t, 0, NULL); @@ -1067,4 +1067,4 @@ void atomic_freelist_put(std::atomic *> &head_list, AtomicFree } } -} \ No newline at end of file +} From b9e091618958ccbcec6a261354beb76d76837e6c Mon Sep 17 00:00:00 2001 From: misomosi Date: Thu, 9 Jul 2026 19:39:32 -0400 Subject: [PATCH 2/2] Use better triple for ARM32 freestanding --- src/build_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 23f353a3d..d767b4890 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -881,7 +881,7 @@ gb_global TargetMetrics target_freestanding_arm32 = { TargetOs_freestanding, TargetArch_arm32, 4, 4, 8, 16, - str_lit("arm-unknown-unknown-gnueabihf"), + str_lit("arm-none-eabihf"), }; gb_global TargetMetrics target_freestanding_riscv64 = { TargetOs_freestanding,