From 794cd561cde3d1f3bf4120aeb97797541f196c0f Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Sat, 7 Sep 2019 12:28:10 +1000 Subject: [PATCH] fix libpath issue --- compiler/msvc.v | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/msvc.v b/compiler/msvc.v index 7015d2f960..1fdb0dd1c8 100644 --- a/compiler/msvc.v +++ b/compiler/msvc.v @@ -320,9 +320,8 @@ pub fn (v mut V) cc_msvc() { inc_paths << ' ' + flag.format() + ' ' } else if flag.name == '-L' { - lpath := flag.value - lib_paths << '"' + lpath + '"' - lib_paths << '"' + lpath + os.PathSeparator + 'msvc' + '"' + lib_paths << flag.value + lib_paths << flag.value + os.PathSeparator + 'msvc' // The above allows putting msvc specific .lib files in a subfolder msvc/ , // 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.