Commit 15125520 authored by Sergio Martins's avatar Sergio Martins

AppImage docker: Bump to llvm-10

Requires gcc 5.1, so build that too
parent b0543b0b
......@@ -3,13 +3,25 @@ MAINTAINER Sergio Martins (sergio.martins@kdab.com)
WORKDIR /
RUN yum update -y
RUN yum install -y git wget boost-regex boost-devel
RUN yum install -y git wget boost-regex boost-devel svn flex zip texinfo
RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
RUN yum install -y devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++
ENV PATH=/opt/rh/devtoolset-2/root/usr/bin/:$PATH
# Build GCC
WORKDIR /
svn co svn://gcc.gnu.org/svn/gcc/tags/gcc_5_1_0_release/
WORKDIR /gcc_5_1_0_release/
RUN ./contrib/download_prerequisites
RUN mkdir /gcc_5_1_0_release_build/
WORKDIR /gcc_5_1_0_release_build/
RUN ../gcc_5_1_0_release/configure --disable-multilib && make -j12 && make install
ENV CXX=/usr/local/bin/g++
ENV CC=/usr/local/bin/gcc
# Copy appdir template
ADD clazy.AppDir /clazy.AppDir/
......@@ -32,7 +44,7 @@ RUN make install
#Build LLVM
WORKDIR /
RUN wget -O - https://github.com/llvm/llvm-project/tarball/llvmorg-9.0.0 | tar xz
RUN wget -O - https://github.com/llvm/llvm-project/tarball/llvmorg-10.0.0 | tar xz
RUN mv llvm-llvm-project-* llvm-project
WORKDIR /llvm-project/
RUN echo "LLVM sha1: `git rev-parse HEAD`" > /clazy.AppDir/sha1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment