-
Notifications
You must be signed in to change notification settings - Fork 142
/
Dockerfile
61 lines (45 loc) · 1.56 KB
/
Dockerfile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:22.04
ARG LLVM_INSTALL_DIR="/usr/local/llvm-14"
LABEL Name=phasar Version=2403
RUN apt -y update && apt install bash sudo -y
WORKDIR /usr/src/phasar
RUN mkdir -p /usr/src/phasar/utils
COPY ./utils/InitializeEnvironment.sh /usr/src/phasar/utils/
RUN ./utils/InitializeEnvironment.sh
RUN apt-get -y install --no-install-recommends \
cmake \
ninja-build \
libstdc++6 \
libboost-graph-dev
COPY ./utils/InstallAptDependencies.sh /usr/src/phasar/utils/
RUN ./utils/InstallAptDependencies.sh
RUN apt-get update && \
apt-get install -y software-properties-common
RUN apt-key adv --fetch-keys https://apt.llvm.org/llvm-snapshot.gpg.key && \
add-apt-repository -y 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main' && \
apt-get update && \
apt-get -y install --no-install-recommends \
clang-14 \
llvm-14-dev \
libllvm14 \
libclang-common-14-dev \
libclang-14-dev \
libclang-cpp14-dev \
clang-tidy-14 \
libclang-rt-14-dev
RUN pip3 install Pygments pyyaml
# installing wllvm
RUN pip3 install wllvm
ENV CC=/usr/bin/clang-14
ENV CXX=/usr/bin/clang++-14
COPY . /usr/src/phasar
RUN git submodule init
RUN git submodule update
RUN mkdir -p build && cd build && \
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DPHASAR_TARGET_ARCH="" \
-DCMAKE_CXX_COMPILER=$CXX \
-G Ninja && \
cmake --build .
ENTRYPOINT [ "./build/tools/phasar-cli/phasar-cli" ]