builder: fix building sqlite3 on windows

pull/6822/head
Delyan Angelov 2020-11-13 20:35:15 +02:00
parent eacd6b5d54
commit 8cb1714255
1 changed files with 1 additions and 1 deletions

View File

@ -814,7 +814,7 @@ fn (mut v Builder) build_thirdparty_obj_file(path string, moduleflags []cflag.CF
return
}
println('$obj_path not found, building it in $opath ...')
cfile := '${path[..path.len - 2]}.c'
cfile := '${obj_path[..obj_path.len - 2]}.c'
btarget := moduleflags.c_options_before_target()
atarget := moduleflags.c_options_after_target()
cppoptions := if v.pref.ccompiler.contains('++') { ' -fpermissive -w ' } else { '' }