builder: fix cross compilation of examples from linux->windows

pull/7189/head
Delyan Angelov 2020-12-07 19:57:06 +02:00
parent a100b05647
commit 4b4733d6b4
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 0 deletions

View File

@ -723,6 +723,7 @@ fn (mut c Builder) cc_windows_cross() {
libs += ' "$pref.default_module_path/vlib/${imp}.o"' libs += ' "$pref.default_module_path/vlib/${imp}.o"'
} }
} }
args += ' ' + cflags.c_options_only_object_files() + ' '
args += ' $c.out_name_c ' args += ' $c.out_name_c '
args += if c.pref.ccompiler == 'msvc' { cflags.c_options_after_target_msvc() } else { cflags.c_options_after_target() } args += if c.pref.ccompiler == 'msvc' { cflags.c_options_after_target_msvc() } else { cflags.c_options_after_target() }
/* /*