Skip to content

Commit

Permalink
remove libxml2 dependency
Browse files Browse the repository at this point in the history
closes #9
closes #7
  • Loading branch information
andrewrk committed Sep 30, 2018
1 parent 9261c1c commit e0dd151
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
14 changes: 1 addition & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,13 @@ RUN apk update && \
RUN mkdir -p /deps
ARG MAKE_JOBS=-j1

# xml2
WORKDIR /deps
RUN wget ftp://ftp.xmlsoft.org/libxml2/libxml2-2.9.7.tar.gz
RUN tar xf libxml2-2.9.7.tar.gz
WORKDIR /deps/libxml2-2.9.7
RUN autoreconf
RUN ./configure --without-python --disable-shared --prefix=/deps/local
RUN make $MAKE_JOBS install

# llvm
WORKDIR /deps
RUN wget http://releases.llvm.org/7.0.0/llvm-7.0.0.src.tar.xz
RUN tar xf llvm-7.0.0.src.tar.xz
WORKDIR /deps/llvm-7.0.0.src/
COPY llvm-fix-libxml2-dep.patch ./
RUN patch -p0 -i llvm-fix-libxml2-dep.patch
RUN mkdir -p /deps/llvm-7.0.0.src/build
WORKDIR /deps/llvm-7.0.0.src/build
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/deps/local -DCMAKE_PREFIX_PATH=/deps/local -DCMAKE_BUILD_TYPE=Release -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="WebAssembly;AVR;RISCV"
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/deps/local -DCMAKE_PREFIX_PATH=/deps/local -DCMAKE_BUILD_TYPE=Release -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="WebAssembly;AVR;RISCV" -DLLVM_ENABLE_LIBXML2=OFF
RUN make $MAKE_JOBS install

# clang
Expand Down
25 changes: 0 additions & 25 deletions llvm-fix-libxml2-dep.patch

This file was deleted.

0 comments on commit e0dd151

Please sign in to comment.