Browse Source

Revert clang update, got too many weird issues.

We'll retry upgrading when clang v16 is made available.

Revert "Forgot to replace one line v14 -> 15"

This reverts commit 9d768420f6.

Revert "Bump clang from v14 to v15."

This reverts commit a9e15599dd.
master
Ray Burgemeestre 1 year ago
parent
commit
f37c5aa5b8
2 changed files with 8 additions and 8 deletions
  1. +3
    -3
      Dockerfile-ubuntu2204
  2. +5
    -5
      switch-to-latest-clang

+ 3
- 3
Dockerfile-ubuntu2204 View File

@@ -14,8 +14,8 @@ RUN apt-get update && \
apt-get -y install vim gdb strace patch && \
\
apt update -y && \
apt-get install -y clang-15 clang-tidy-15 libclang-15-dev clangd-15 lldb-15 lld-15 clangd-15 && \
apt-get install -y libc++-15-dev libc++-15-dev clang-format-15 clang-tidy-15 && \
apt-get install -y clang-14 clang-tidy-14 libclang-14-dev clangd-14 lldb-14 lld-14 clangd-14 && \
apt-get install -y libc++-14-dev libc++-14-dev clang-format-14 && \
\
rm -rf /var/lib/apt/lists/*

@@ -46,7 +46,7 @@ RUN sudo apt-get update && \
RUN /emsdk/upstream/emscripten/em++ -s WASM=1 -s USE_SDL=2 -s USE_SDL_TTF=2 -O3 /dev/null || true

# Fix some weird linker issue CAF build runs into. (fails to link -lc++abi)
RUN cp -prv /usr/lib/llvm-15/lib/libc++abi.so.1.0 /usr/lib/llvm-15/lib/libc++abi.so
RUN cp -prv /usr/lib/llvm-14/lib/libc++abi.so.1.0 /usr/lib/llvm-14/lib/libc++abi.so

# EDIT: no longer needed!
# RUN cp -prv /usr/lib/llvm-14/lib/libunwind.so.1.0 /usr/lib/llvm-14/lib/libunwind.so

+ 5
- 5
switch-to-latest-clang View File

@@ -3,10 +3,10 @@
set +e
set -o pipefail

update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-15 40 > /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-15 40 >> /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 40 >> /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-15 40 >> /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-15 40 >> /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-14 40 > /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-14 40 >> /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-14 40 >> /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 40 >> /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-14 40 >> /tmp/.switch-to-clang.stdout

echo compiler set to: $(readlink /etc/alternatives/c++)

Loading…
Cancel
Save