mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Allow -error-pos-style:default as an alias for odin
This commit is contained in:
+2
-2
@@ -1478,12 +1478,12 @@ bool parse_build_flags(Array<String> args) {
|
|||||||
case BuildFlag_ErrorPosStyle:
|
case BuildFlag_ErrorPosStyle:
|
||||||
GB_ASSERT(value.kind == ExactValue_String);
|
GB_ASSERT(value.kind == ExactValue_String);
|
||||||
|
|
||||||
if (str_eq_ignore_case(value.value_string, str_lit("odin"))) {
|
if (str_eq_ignore_case(value.value_string, str_lit("odin")) || str_eq_ignore_case(value.value_string, str_lit("default"))) {
|
||||||
build_context.ODIN_ERROR_POS_STYLE = ErrorPosStyle_Default;
|
build_context.ODIN_ERROR_POS_STYLE = ErrorPosStyle_Default;
|
||||||
} else if (str_eq_ignore_case(value.value_string, str_lit("unix"))) {
|
} else if (str_eq_ignore_case(value.value_string, str_lit("unix"))) {
|
||||||
build_context.ODIN_ERROR_POS_STYLE = ErrorPosStyle_Unix;
|
build_context.ODIN_ERROR_POS_STYLE = ErrorPosStyle_Unix;
|
||||||
} else {
|
} else {
|
||||||
gb_printf_err("-error-pos-style options are 'unix' and 'odin'\n");
|
gb_printf_err("-error-pos-style options are 'unix', 'odin' and 'default' (odin)\n");
|
||||||
bad_flags = true;
|
bad_flags = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user