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 -no-retry-compilation -cc tcc -usecache examples/tetris/
1 parent 99fdcd2 commit 4114dd0Copy full SHA for 4114dd0
vlib/v/builder/cc.v
@@ -341,7 +341,12 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
341
ccoptions.post_args << '-municode'
342
}
343
cflags := v.get_os_cflags()
344
- ccoptions.o_args << cflags.c_options_only_object_files()
+
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
350
defines, others, libs := cflags.defines_others_libs()
351
ccoptions.pre_args << defines
352
ccoptions.pre_args << others
0 commit comments