We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
v -is_o -o x mm.v
mm.v
module abc
module main
1 parent c74c9e4 commit 5413a25Copy full SHA for 5413a25
1 file changed
vlib/v/checker/checker.v
@@ -458,6 +458,10 @@ pub fn (mut c Checker) check_files(ast_files []&ast.File) {
458
// shared libs do not need to have a main
459
return
460
}
461
+ if c.pref.is_o {
462
+ // .o files also do not need main
463
+ return
464
+ }
465
if c.pref.no_builtin {
466
// `v -no-builtin module/` do not necessarily need to have a `main` function
467
// This is useful for compiling linux kernel modules for example.
0 commit comments