1
0
Fork 0

Add workaround for aarch64 architecture to compile HLS in Dockerfile

main
Sebastian Steger 2026-10-30 09:15:14 +01:00
parent 0af4ed63e4
commit 75ebeb6552
1 changed files with 5 additions and 0 deletions

View File

@ -39,3 +39,8 @@ ENV PATH="$PATH:/home/ubuntu/.ghcup/bin"
RUN cabal update && cabal install --lib HUnit \
&& rm -rf ~/.cabal/packages/*
# workaround for aarch64 architecture to compile HLS
RUN if [ "$(uname -m)" = "aarch64" ]; then \
cabal update && ghcup compile hls --version 2.14.0.0 --ghc 9.10.3 && rm -rf ~/.cabal/packages/*; \
fi