Skip to content

Commit

Permalink
ubuntu: only install flang for >22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
junghans authored Feb 7, 2025
1 parent 10dbe6b commit 4b8f863
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
ccache clang clang-format clang-tidy cmake curl flang g++ gfortran git gnupg2 libgtest-dev libhwloc-dev libomp-dev llvm make ninja-build sudo vim wget zstd && \
ccache clang clang-format clang-tidy cmake curl g++ gfortran git gnupg2 libgtest-dev libhwloc-dev libomp-dev llvm make ninja-build sudo vim wget zstd && \
if [ "$(uname -m)" = "x86_64" ]; then \
apt-get install -y gcc-multilib g++-multilib gfortran-multilib; \
fi && \
apt-get purge --autoremove -y && \
rm -rf /var/lib/apt/lists/*

RUN . /etc/os-release && if [ "${VERSION_ID}" != "22.04" ]; then \
apt-get install -y flang && \
apt-get purge --autoremove -y && \
apt-get clean; \
fi

RUN if [ "${INTEL}" = "yes" ]; then \
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null && \
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list && \
Expand Down

0 comments on commit 4b8f863

Please sign in to comment.