mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Make -error-pos-style case-insensitive.
This commit is contained in:
+7
-2
@@ -1477,9 +1477,14 @@ 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);
|
||||||
build_context.ODIN_ERROR_POS_STYLE = ErrorPosStyle_Default;
|
|
||||||
if (value.value_string == "unix" || value.value_string == "UNIX") {
|
if (str_eq_ignore_case(value.value_string, str_lit("odin"))) {
|
||||||
|
build_context.ODIN_ERROR_POS_STYLE = ErrorPosStyle_Default;
|
||||||
|
} 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 {
|
||||||
|
gb_printf_err("-error-pos-style options are 'unix' and 'odin'\n");
|
||||||
|
bad_flags = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user