Skip to content

Commit 4114dd0

Browse files
committed
v.builder: fix v -no-retry-compilation -cc tcc -usecache examples/tetris/
1 parent 99fdcd2 commit 4114dd0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

vlib/v/builder/cc.v

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,12 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
341341
ccoptions.post_args << '-municode'
342342
}
343343
cflags := v.get_os_cflags()
344-
ccoptions.o_args << cflags.c_options_only_object_files()
344+
345+
if v.pref.build_mode != .build_module {
346+
only_o_files := cflags.c_options_only_object_files()
347+
ccoptions.o_args << only_o_files
348+
}
349+
345350
defines, others, libs := cflags.defines_others_libs()
346351
ccoptions.pre_args << defines
347352
ccoptions.pre_args << others

0 commit comments

Comments
 (0)