pref: is_o

master
Alexander Medvednikov 2022-06-16 20:51:17 +03:00
parent 5df3d8ac75
commit b89617726c
2 changed files with 7 additions and 0 deletions

View File

@ -363,6 +363,10 @@ pub fn (mut c Checker) check_basic(got ast.Type, expected ast.Type) bool {
} }
pub fn (mut c Checker) check_matching_function_symbols(got_type_sym &ast.TypeSymbol, exp_type_sym &ast.TypeSymbol) bool { pub fn (mut c Checker) check_matching_function_symbols(got_type_sym &ast.TypeSymbol, exp_type_sym &ast.TypeSymbol) bool {
if c.pref.translated {
// TODO too open
return true
}
got_info := got_type_sym.info as ast.FnType got_info := got_type_sym.info as ast.FnType
exp_info := exp_type_sym.info as ast.FnType exp_info := exp_type_sym.info as ast.FnType
got_fn := got_info.func got_fn := got_info.func

View File

@ -654,6 +654,9 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin
} }
i++ i++
} }
'-is_o' {
res.is_o = true
}
'-b', '-backend' { '-b', '-backend' {
sbackend := cmdline.option(current_args, arg, 'c') sbackend := cmdline.option(current_args, arg, 'c')
res.build_options << '$arg $sbackend' res.build_options << '$arg $sbackend'