]> git.ipfire.org Git - thirdparty/git.git/blobdiff - contrib/buildsystems/engine.pl
msvc: add a Makefile target to pre-generate the Visual Studio solution
[thirdparty/git.git] / contrib / buildsystems / engine.pl
index 9bde7ae15b538eacfc4ee1a2f4855495f114723d..fba8a3f056a0e16591496f77a8b505ec01d01964 100755 (executable)
@@ -82,7 +82,8 @@ EOM
 # Capture the make dry stderr to file for review (will be empty for a release build).
 
 my $ErrsFile = "msvc-build-makedryerrors.txt";
-@makedry = `make -C $git_dir -n MSVC=1 V=1 2>$ErrsFile` if !@makedry;
+@makedry = `make -C $git_dir -n MSVC=1 SKIP_VCPKG=1 V=1 2>$ErrsFile`
+if !@makedry;
 # test for an empty Errors file and remove it
 unlink $ErrsFile if -f -z $ErrsFile;
 
@@ -351,7 +352,7 @@ sub handleLinkLine
             push(@libs, "expat.lib");
         } elsif ("$part" eq "-liconv") {
             push(@libs, "libiconv.lib");
-        } elsif ($part =~ /^-/) {
+        } elsif ($part =~ /^[-\/]/) {
             push(@lflags, $part);
         } elsif ($part =~ /\.(a|lib)$/) {
             $part =~ s/\.a$/.lib/;