mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-09-11 16:56:14 +03:00
Fix build on windows 9.2.2
This commit is contained in:
parent
edfefcd278
commit
641eed4dec
@ -47,6 +47,12 @@ esac
|
||||
|
||||
case "$(uname)" in
|
||||
MSYS_*|MINGW*)
|
||||
# workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/21196
|
||||
export PATH="${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/mingw/bin:${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/mingw/usr/bin:$PATH"
|
||||
ls ${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/mingw/bin
|
||||
cp ${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/mingw/bin/libgcc_s_seh-1.dll ${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/bin
|
||||
cp ${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/mingw/bin/libwinpthread-1.dll ${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/bin
|
||||
ghc --info
|
||||
# Shorten binary names
|
||||
sed -i.bak -e 's/haskell-language-server/hls/g' \
|
||||
-e 's/haskell_language_server/hls/g' \
|
||||
|
@ -45,6 +45,18 @@ case "$(uname -s)" in
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$(uname)" in
|
||||
MSYS_*|MINGW*)
|
||||
# workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/21196
|
||||
export PATH="${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/mingw/bin:${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/mingw/usr/bin:$PATH"
|
||||
ls ${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/mingw/bin
|
||||
cp ${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/mingw/bin/libgcc_s_seh-1.dll ${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/bin
|
||||
cp ${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/mingw/bin/libwinpthread-1.dll ${GHCUP_INSTALL_BASE_PREFIX}/ghcup/ghc/${GHC_VERSION}/bin
|
||||
ghc --info
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
# make sure out/ dir is gone, so build host rpaths don't
|
||||
# kick in (TODO: we should probably remove those)
|
||||
mv "$CI_PROJECT_DIR/out"/*.tar.xz .
|
||||
|
Loading…
Reference in New Issue
Block a user