-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.llvm
40 lines (33 loc) · 1.21 KB
/
Dockerfile.llvm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM quay.io/pypa/manylinux2010_x86_64
WORKDIR /gt
ENV PATH="${PATH}:/opt/python/cp36-cp36m/bin/"
RUN yum install -y ninja-build xz wget
# The version of cmake in the manylinux2010 container is ancient (2.8), so
# grab our own updated version.
RUN wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4.tar.gz && \
tar -xf cmake-3.18.4.tar.gz && \
rm cmake-3.18.4.tar.gz
RUN cd cmake-3.18.4 && \
./bootstrap --parallel=8 -- -DCMAKE_USE_OPENSSL=OFF && \
make -j8 && \
make install && \
cd .. && \
rm -rf cmake-3.18.4
RUN wget https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/llvm-14.0.6.src.tar.xz && \
tar -xf llvm-14.0.6.src.tar.xz && \
rm llvm-14.0.6.src.tar.xz
RUN mkdir llvm-build && \
cd llvm-build && \
cmake -G Ninja ../llvm-14.0.6.src \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_ENABLE_ZLIB=OFF \
-DLLVM_ENABLE_TERMINFO=OFF \
-DLLVM_ENABLE_LIBXML2=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLLVM_PARALLEL_LINK_JOBS=1 \
-DLLVM_INCLUDE_BENCHMARKS=OFF \
-DLLVM_LINK_LLVM_DYLIB=ON && \
ninja-build && \
ninja-build install && \
cd .. && \
rm -rf llvm-build llvm-14.0.6.src