Skip to content

Commit 4553f9d

Browse files
dschogitster
authored andcommitted
contrib/buildsystems: handle options starting with a slash
With the recent changes to allow building with MSVC=1, we now pass the /OPT:REF option to the compiler. This confuses the parser that wants to turn the output of a dry run into project definitions for QMake and Visual Studio: Unhandled link option @ line 213: /OPT:REF at [...] Let's just extend the code that passes through options that start with a dash, so that it passes through options that start with a slash, too. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6e50021 commit 4553f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/buildsystems/engine.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ sub handleLinkLine
351351
push(@libs, "expat.lib");
352352
} elsif ("$part" eq "-liconv") {
353353
push(@libs, "libiconv.lib");
354-
} elsif ($part =~ /^-/) {
354+
} elsif ($part =~ /^[-\/]/) {
355355
push(@lflags, $part);
356356
} elsif ($part =~ /\.(a|lib)$/) {
357357
$part =~ s/\.a$/.lib/;

0 commit comments

Comments
 (0)