aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/core.odin7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/runtime/core.odin b/core/runtime/core.odin
index 542340e36..36a88a8b5 100644
--- a/core/runtime/core.odin
+++ b/core/runtime/core.odin
@@ -384,7 +384,12 @@ Raw_Cstring :: struct {
// This is probably only useful for freestanding targets
foreign {
@(link_name="__$startup_runtime")
- _startup_runtime :: proc "contextless" () ---
+ _startup_runtime :: proc() ---
+}
+
+@(link_name="__$cleanup_runtime")
+_cleanup_runtime :: proc() {
+ default_temp_allocator_destroy(&global_default_temp_allocator_data)
}