aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-09-15 12:27:53 +0100
committergingerBill <bill@gingerbill.org>2020-09-15 12:27:53 +0100
commitedbad0709efe050441f3bc27fe22a9597b2bae06 (patch)
treec6f2bad57a7cd8deb2403b44d3b9094ee7862073 /core/runtime
parentbfc7d74967b0c5b8c2696fdfcb02fe449c9d94ef (diff)
Add -default-to-nil-allocator flag (sets `ODIN_DEFAULT_TO_NIL_ALLOCATOR`)
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/default_allocators.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/default_allocators.odin b/core/runtime/default_allocators.odin
index 7e616d043..a132b7a4f 100644
--- a/core/runtime/default_allocators.odin
+++ b/core/runtime/default_allocators.odin
@@ -1,6 +1,6 @@
package runtime
-when ODIN_OS == "freestanding" {
+when ODIN_DEFAULT_TO_NIL_ALLOCATOR || ODIN_OS == "freestanding" {
// mem.nil_allocator reimplementation
default_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,