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>
This commit is contained in:
Johannes Schindelin 2016-10-27 07:25:00 -07:00
Родитель 901a28b607
Коммит 4fc25102aa
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -347,7 +347,7 @@ sub handleLinkLine
push(@libs, "libcurl.lib"); push(@libs, "libcurl.lib");
} elsif ("$part" eq "-liconv") { } elsif ("$part" eq "-liconv") {
push(@libs, "libiconv.lib"); push(@libs, "libiconv.lib");
} elsif ($part =~ /^-/) { } elsif ($part =~ /^[-\/]/) {
push(@lflags, $part); push(@lflags, $part);
} elsif ($part =~ /\.(a|lib)$/) { } elsif ($part =~ /\.(a|lib)$/) {
$part =~ s/\.a$/.lib/; $part =~ s/\.a$/.lib/;