Skip to content

Commit

Permalink
Update LLVM trunk version to 18
Browse files Browse the repository at this point in the history
  • Loading branch information
samcmill committed Oct 11, 2023
1 parent 4f5ef11 commit 1c3350e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion hpccm/building_blocks/llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self, **kwargs):
self.__runtime_rpms = [] # Filled in below
self.__toolset = kwargs.get('toolset', False)
# Current LLVM trunk version
self.__trunk_version = kwargs.get('_trunk_version', '17')
self.__trunk_version = kwargs.get('_trunk_version', '18')
self.__upstream = kwargs.get('upstream', False)
self.__version = kwargs.get('version', None)

Expand Down
32 changes: 16 additions & 16 deletions test/test_llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,15 +361,15 @@ def test_upstream_ubuntu18(self):
echo "deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic main" >> /etc/apt/sources.list.d/hpccm.list && \
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
clang-17 \
clang-format-17 \
clang-tidy-17 \
libomp-17-dev && \
clang-18 \
clang-format-18 \
clang-tidy-18 \
libomp-18-dev && \
rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/clang clang $(which clang-17) 30 && \
update-alternatives --install /usr/bin/clang++ clang++ $(which clang++-17) 30 && \
update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-17) 30 && \
update-alternatives --install /usr/bin/clang-tidy clang-tidy $(which clang-tidy-17) 30''')
RUN update-alternatives --install /usr/bin/clang clang $(which clang-18) 30 && \
update-alternatives --install /usr/bin/clang++ clang++ $(which clang++-18) 30 && \
update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-18) 30 && \
update-alternatives --install /usr/bin/clang-tidy clang-tidy $(which clang-tidy-18) 30''')

@x86_64
@ubuntu20
Expand All @@ -391,15 +391,15 @@ def test_upstream_ubuntu20(self):
echo "deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal main" >> /etc/apt/sources.list.d/hpccm.list && \
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
clang-17 \
clang-format-17 \
clang-tidy-17 \
libomp-17-dev && \
clang-18 \
clang-format-18 \
clang-tidy-18 \
libomp-18-dev && \
rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/clang clang $(which clang-17) 30 && \
update-alternatives --install /usr/bin/clang++ clang++ $(which clang++-17) 30 && \
update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-17) 30 && \
update-alternatives --install /usr/bin/clang-tidy clang-tidy $(which clang-tidy-17) 30''')
RUN update-alternatives --install /usr/bin/clang clang $(which clang-18) 30 && \
update-alternatives --install /usr/bin/clang++ clang++ $(which clang++-18) 30 && \
update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-18) 30 && \
update-alternatives --install /usr/bin/clang-tidy clang-tidy $(which clang-tidy-18) 30''')

@aarch64
@ubuntu
Expand Down

0 comments on commit 1c3350e

Please sign in to comment.