diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-12 16:01:09 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-12 19:26:46 +0100 |
commit | 68208ad6f2ee14c4f405face189276c22561e883 (patch) | |
tree | f166c2c36c887337e6652d786b12bab4753f2ee5 /.github/actions/check-runtime-library | |
parent | README: update (diff) | |
download | cmake-common-68208ad6f2ee14c4f405face189276c22561e883.tar.gz cmake-common-68208ad6f2ee14c4f405face189276c22561e883.zip |
actions/check-runtime-library: fix linked libs on Windows
Apparently, MinGW doesn't link to either ucrtbase.dll or msvcrt.dll at
all on Windows.
Diffstat (limited to '.github/actions/check-runtime-library')
-rw-r--r-- | .github/actions/check-runtime-library/action.yml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/.github/actions/check-runtime-library/action.yml b/.github/actions/check-runtime-library/action.yml index 9a572b8..9d4be5e 100644 --- a/.github/actions/check-runtime-library/action.yml +++ b/.github/actions/check-runtime-library/action.yml @@ -121,11 +121,8 @@ runs: $windows_required = @('KERNEL32.dll') if ($env:CI_MINGW) { - if ($env:CI_HOST_WINDOWS) { - # This is only true for windows-2022 images. - $windows_required += 'ucrtbase.dll' - } else { - $windows_required += 'msvcrt.dll' + if (!$env:CI_HOST_WINDOWS) { + $windows_required += @('msvcrt.dll') } } # Linking libstdc++ statically on Cygwin is broken, see the |