diff options
| author | Space Meyer <spm@google.com> | 2023-08-01 15:32:36 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2023-08-01 14:22:58 +0000 |
| commit | df07ffe8f9d561e9795b2dcf75a2af0bc1e7e9fa (patch) | |
| tree | cea53bad1dfa268afc802ff3e2b60f7fe3a4c858 /tools | |
| parent | 2a0d0f29e37863d5cdb8e95c9fa2a83251ba3972 (diff) | |
tools/docker: install llvm package and add some tools to path
These are required for building linux with LLVM=1.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/docker/syzbot/Dockerfile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/docker/syzbot/Dockerfile b/tools/docker/syzbot/Dockerfile index e15b6ec80..75a95de91 100644 --- a/tools/docker/syzbot/Dockerfile +++ b/tools/docker/syzbot/Dockerfile @@ -39,13 +39,17 @@ RUN apt-get install -y -q gnupg software-properties-common apt-transport-https RUN curl https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - RUN add-apt-repository "deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-15 main" RUN apt-get update --allow-releaseinfo-change -RUN apt-get install -y -q --no-install-recommends clang-15 clang-format-15 clang-tidy-15 lld-15 +RUN apt-get install -y -q --no-install-recommends llvm-15 clang-15 clang-format-15 clang-tidy-15 lld-15 RUN apt autoremove -y -q RUN sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-15 100 RUN sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 100 RUN sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-15 100 RUN sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 100 RUN sudo update-alternatives --install /usr/bin/ld.lld ld.lld /usr/bin/lld-15 100 +RUN sudo update-alternatives --install /usr/bin/llvm-nm llvm-nm /usr/bin/llvm-nm-15 100 +RUN sudo update-alternatives --install /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 100 +RUN sudo update-alternatives --install /usr/bin/llvm-objcopy llvm-objcopy /usr/bin/llvm-objcopy-15 100 +RUN sudo update-alternatives --install /usr/bin/llvm-objdump llvm-objdump /usr/bin/llvm-objdump-15 100 # Not really GRTE, but it's enough to run some scripts that hardcode the path. RUN mkdir -p /usr/grte/v5/bin && ln -s /usr/bin/python3 /usr/grte/v5/bin/python2.7 |
