]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ci(vs-build): stop passing the iconv library location explicitly
authorDennis Ameling <dennis@dennisameling.com>
Fri, 4 Dec 2020 14:22:20 +0000 (14:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 4 Dec 2020 20:03:15 +0000 (12:03 -0800)
Something changed in `vcpkg` (which we use in our Visual C++ build to
provide the dependencies such as libcurl) and our `vs-build` job started
failing in CI. The reason is that we had a work-around in place to help
CMake find iconv, and this work-around is neither needed nor does it
work anymore.

For the full discussion with the vcpkg project, see this comment:
https://github.com/microsoft/vcpkg/issues/14780#issuecomment-735368280

Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.github/workflows/main.yml
compat/vcbuild/scripts/clink.pl
contrib/buildsystems/engine.pl

index a940997f1b660c412d24ca54f15571a4af6d38ff..f1f0d1fe3547c913e997f6f9ae81a8e66bdeb576 100644 (file)
@@ -201,7 +201,6 @@ jobs:
       shell: bash
       run: |
         cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/x64-windows \
-        -DIconv_LIBRARY=`pwd`/compat/vcbuild/vcpkg/installed/x64-windows/lib/libiconv.lib -DIconv_INCLUDE_DIR=`pwd`/compat/vcbuild/vcpkg/installed/x64-windows/include \
         -DMSGFMT_EXE=`pwd`/git-sdk-64-minimal/mingw64/bin/msgfmt.exe -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON
     - name: MSBuild
       run: msbuild git.sln -property:Configuration=Release -property:Platform=x64 -maxCpuCount:4 -property:PlatformToolset=v142
index df167d1e1a542d37c794f0ed307dfdaac89092e3..3bd824154be3816bc51f31921bb87f10df82e30d 100755 (executable)
@@ -45,7 +45,7 @@ while (@ARGV) {
                push(@args, "zlib.lib");
            }
        } elsif ("$arg" eq "-liconv") {
-               push(@args, "libiconv.lib");
+               push(@args, "iconv.lib");
        } elsif ("$arg" eq "-lcrypto") {
                push(@args, "libcrypto.lib");
        } elsif ("$arg" eq "-lssl") {
index 2ff96204596445345e4566f37427c5ca49111419..ed6c45988a38b0f45a2b67a15cb18a221ad911c7 100755 (executable)
@@ -351,7 +351,7 @@ sub handleLinkLine
         } elsif ("$part" eq "-lexpat") {
             push(@libs, "libexpat.lib");
         } elsif ("$part" eq "-liconv") {
-            push(@libs, "libiconv.lib");
+            push(@libs, "iconv.lib");
         } elsif ($part =~ /^[-\/]/) {
             push(@lflags, $part);
         } elsif ($part =~ /\.(a|lib)$/) {