builder: move -c right before the .c thirdparty file

pull/6822/head
Delyan Angelov 2020-11-13 20:42:26 +02:00
parent 8cb1714255
commit 01579957b8
1 changed files with 1 additions and 1 deletions

View File

@ -818,7 +818,7 @@ fn (mut v Builder) build_thirdparty_obj_file(path string, moduleflags []cflag.CF
btarget := moduleflags.c_options_before_target() btarget := moduleflags.c_options_before_target()
atarget := moduleflags.c_options_after_target() atarget := moduleflags.c_options_after_target()
cppoptions := if v.pref.ccompiler.contains('++') { ' -fpermissive -w ' } else { '' } cppoptions := if v.pref.ccompiler.contains('++') { ' -fpermissive -w ' } else { '' }
cmd := '$v.pref.ccompiler $cppoptions $v.pref.third_party_option $btarget -c -o "$opath" "$cfile" $atarget' cmd := '$v.pref.ccompiler $cppoptions $v.pref.third_party_option $btarget -o "$opath" -c "$cfile" $atarget'
res := os.exec(cmd) or { res := os.exec(cmd) or {
eprintln('exec failed for thirdparty object build cmd:\n$cmd') eprintln('exec failed for thirdparty object build cmd:\n$cmd')
verror(err) verror(err)