summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-06-17 21:54:02 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-06-17 21:54:03 -0700
commit9906d5f8e9323724f74715740161e4a91f5d7f87 (patch)
treee6831afcc5a0f9195aa92d53c45fd59b2a7242c3 /compat
parentMerge branch 'en/sparse-checkout' (diff)
parentmsvc: fix "REG_STARTEND" issue (diff)
downloadtgif-9906d5f8e9323724f74715740161e4a91f5d7f87.tar.xz
Merge branch 'js/msvc-build-fix'
Workaround breakage in MSVC build, where "curl-config --cflags" gives settings appropriate for GCC build. * js/msvc-build-fix: msvc: fix "REG_STARTEND" issue
Diffstat (limited to 'compat')
-rwxr-xr-xcompat/vcbuild/scripts/clink.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/compat/vcbuild/scripts/clink.pl b/compat/vcbuild/scripts/clink.pl
index d9f71b7cbb..61ad084a7b 100755
--- a/compat/vcbuild/scripts/clink.pl
+++ b/compat/vcbuild/scripts/clink.pl
@@ -23,7 +23,9 @@ while (@ARGV) {
# before any "-l*" flags.
$is_debug = 1;
}
- if ("$arg" =~ /^-[DIMGOZ]/) {
+ if ("$arg" =~ /^-I\/mingw(32|64)/) {
+ # eat
+ } elsif ("$arg" =~ /^-[DIMGOZ]/) {
push(@cflags, $arg);
} elsif ("$arg" eq "-o") {
my $file_out = shift @ARGV;