File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 15
15
ARG parent_image
16
16
FROM $parent_image
17
17
18
+ # Install dependencies.
19
+ RUN apt-get update && \
20
+ apt-get remove -y llvm-10 && \
21
+ apt-get install -y \
22
+ build-essential \
23
+ lsb-release wget software-properties-common gnupg && \
24
+ wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh 18
25
+
18
26
RUN git clone https://github.com/llvm/llvm-project.git /llvm-project && \
19
27
cd /llvm-project && \
20
- git checkout 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff && \
21
- cd compiler-rt/lib/fuzzer && \
28
+ git checkout 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff
29
+
30
+ RUN cd /llvm-project/compiler-rt/lib/fuzzer && \
22
31
(for f in *.cpp; do \
23
- clang++ -stdlib=libc++ -fPIC -O2 -std=c++11 $f -c & \
32
+ clang++ -stdlib=libc++ -fPIC -O2 -std=c++17 $f -c & \
24
33
done && wait) && \
25
34
ar r libFuzzer.a *.o && \
26
35
cp libFuzzer.a /usr/lib
You can’t perform that action at this time.
0 commit comments