diff options
| author | gingerBill <bill@gingerbill.org> | 2022-11-07 10:24:14 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-11-07 10:24:14 +0000 |
| commit | f1c24f434b0e7bf62588171faea76271f22179b9 (patch) | |
| tree | 0bec1590320c225b1baac9bdaa4add0a33750918 /src/build_settings.cpp | |
| parent | 92e406cef026f6e3859da9eb3a28f4af12f735a1 (diff) | |
`-default-to-nil-allocator` also enables `-no-dynamic-literals`
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 97ee9f2a3..8067d1d01 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -1380,6 +1380,11 @@ bool init_build_paths(String init_filename) { produces_output_file = true; } + + if (build_context.ODIN_DEFAULT_TO_NIL_ALLOCATOR) { + bc->no_dynamic_literals = true; + } + if (!produces_output_file) { // Command doesn't produce output files. We're done. return true; |