Browse Source

`-default-to-nil-allocator` also enables `-no-dynamic-literals`

gingerBill 2 years ago
parent
commit
f1c24f434b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/build_settings.cpp

+ 5 - 0
src/build_settings.cpp

@@ -1380,6 +1380,11 @@ bool init_build_paths(String init_filename) {
 		produces_output_file = true;
 		produces_output_file = true;
 	}
 	}
 
 
+
+	if (build_context.ODIN_DEFAULT_TO_NIL_ALLOCATOR) {
+		bc->no_dynamic_literals = true;
+	}
+
 	if (!produces_output_file) {
 	if (!produces_output_file) {
 		// Command doesn't produce output files. We're done.
 		// Command doesn't produce output files. We're done.
 		return true;
 		return true;