1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fix libpath issue

This commit is contained in:
Joe Conigliaro 2019-09-07 12:28:10 +10:00 committed by Alexander Medvednikov
parent c1f76aec3a
commit 794cd561cd

View File

@ -320,9 +320,8 @@ pub fn (v mut V) cc_msvc() {
inc_paths << ' ' + flag.format() + ' ' inc_paths << ' ' + flag.format() + ' '
} }
else if flag.name == '-L' { else if flag.name == '-L' {
lpath := flag.value lib_paths << flag.value
lib_paths << '"' + lpath + '"' lib_paths << flag.value + os.PathSeparator + 'msvc'
lib_paths << '"' + lpath + os.PathSeparator + 'msvc' + '"'
// The above allows putting msvc specific .lib files in a subfolder msvc/ , // The above allows putting msvc specific .lib files in a subfolder msvc/ ,
// where gcc will NOT find them, but cl will do... // where gcc will NOT find them, but cl will do...
// NB: gcc is smart enough to not need .lib files at all in most cases, the .dll is enough. // NB: gcc is smart enough to not need .lib files at all in most cases, the .dll is enough.