|
@@ -1892,7 +1892,7 @@ gb_internal void init_build_context(TargetMetrics *cross_target, Subtarget subta
|
|
|
// causing a stack overflow to error immediately instead of corrupting globals.
|
|
|
link_flags = gb_string_appendc(link_flags, "--stack-first ");
|
|
|
// NOTE(laytan): default stack size is 64KiB, up to a more reasonable 1MiB.
|
|
|
- link_flags = gb_string_appendc(link_flags, "--stack-size=1048576 ");
|
|
|
+ link_flags = gb_string_appendc(link_flags, "-z stack-size=1048576 ");
|
|
|
|
|
|
// link_flags = gb_string_appendc(link_flags, "--export-all ");
|
|
|
// link_flags = gb_string_appendc(link_flags, "--export-table ");
|