Skip to content

Commit b982a9c

Browse files
committed
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 <johannes.schindelin@gmx.de>
1 parent 7d1f883 commit b982a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/buildsystems/engine.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ sub handleLinkLine
347347
push(@libs, "libcurl.lib");
348348
} elsif ("$part" eq "-liconv") {
349349
push(@libs, "libiconv.lib");
350-
} elsif ($part =~ /^-/) {
350+
} elsif ($part =~ /^[-\/]/) {
351351
push(@lflags, $part);
352352
} elsif ($part =~ /\.(a|lib)$/) {
353353
$part =~ s/\.a$/.lib/;

0 commit comments

Comments
 (0)