From 96e959342a2ae70a3b2b1b0654c33d099afd7654 Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Thu, 5 Sep 2019 09:57:29 +1000 Subject: [PATCH] compiler/msvc: support paths with hyphen --- compiler/msvc.v | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/msvc.v b/compiler/msvc.v index a0a9a56591..028f9b8c9a 100644 --- a/compiler/msvc.v +++ b/compiler/msvc.v @@ -330,6 +330,10 @@ pub fn (v mut V) cc_msvc() { // Which ever one of these is lowest we use // TODO: we really shouldnt support all of these cmon mut lowest := base.index('-') + // dont break paths with hyphens + if lowest != 0 { + lowest = -1 + } for x in [base.index(' '), base.index(',')] { if (x < lowest && x != -1) || lowest == -1 { lowest = x