Add -no-dynamic-literals to disallow dynamic array and map literals

This commit is contained in:
gingerBill
2020-07-14 23:01:34 +01:00
parent b2beb9512f
commit 7ae54ae3b4
5 changed files with 46 additions and 25 deletions
+1
View File
@@ -740,6 +740,7 @@ void init_universal(void) {
add_global_constant(str_lit("ODIN_DEBUG"), t_untyped_bool, exact_value_bool(bc->ODIN_DEBUG));
add_global_constant(str_lit("ODIN_DISABLE_ASSERT"), t_untyped_bool, exact_value_bool(bc->ODIN_DISABLE_ASSERT));
add_global_constant(str_lit("ODIN_USE_LLVM_API"), t_untyped_bool, exact_value_bool(bc->use_llvm_api));
add_global_constant(str_lit("ODIN_NO_DYNAMIC_LITERALS"), t_untyped_bool, exact_value_bool(bc->no_dynamic_literals));
// Builtin Procedures