mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-22 15:32:35 +00:00
Merge branch 'odin-lang:master' into master
This commit is contained in:
@@ -617,6 +617,10 @@ struct BuildContext {
|
||||
|
||||
isize max_error_count;
|
||||
|
||||
bool bedrock;
|
||||
bool disable_non_constant_globals;
|
||||
bool disable_init_fini;
|
||||
|
||||
|
||||
u32 cmd_doc_flags;
|
||||
Array<String> extra_packages;
|
||||
@@ -1858,8 +1862,10 @@ gb_internal void init_build_context(TargetMetrics *cross_target, Subtarget subta
|
||||
bc->no_entry_point = true;
|
||||
} else {
|
||||
if (bc->no_rtti) {
|
||||
gb_printf_err("-no-rtti is only allowed on freestanding targets\n");
|
||||
gb_exit(1);
|
||||
if (!bc->bedrock) {
|
||||
gb_printf_err("-no-rtti is only allowed on freestanding targets or '-bedrock'\n");
|
||||
gb_exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user