mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #9678 from ethereum/fix-9674
Docker: Install antlr4 deps in ossfuzz docker
This commit is contained in:
commit
8402baa45b
@ -22,7 +22,7 @@
|
||||
# (c) 2016-2019 solidity contributors.
|
||||
#------------------------------------------------------------------------------
|
||||
FROM gcr.io/oss-fuzz-base/base-clang as base
|
||||
LABEL version="2"
|
||||
LABEL version="3"
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
@ -31,7 +31,8 @@ RUN apt-get update; \
|
||||
build-essential \
|
||||
software-properties-common \
|
||||
ninja-build git wget \
|
||||
libbz2-dev zlib1g-dev git curl; \
|
||||
libbz2-dev zlib1g-dev git curl uuid-dev \
|
||||
pkg-config openjdk-8-jdk liblzma-dev unzip; \
|
||||
apt-get install -qy python-pip python-sphinx;
|
||||
|
||||
# Install cmake 3.14 (minimum requirement is cmake 3.10)
|
||||
@ -108,6 +109,24 @@ RUN set -ex; \
|
||||
ninja install/strip; \
|
||||
rm -rf /usr/src/hera
|
||||
|
||||
# ANTLR4 RUNTIME
|
||||
RUN set -ex; \
|
||||
cd /usr/src; \
|
||||
wget https://www.antlr.org/download/antlr4-cpp-runtime-4.8-source.zip; \
|
||||
rm -rf antlr4-runtime && mkdir antlr4-runtime; \
|
||||
unzip antlr4-cpp-runtime-4.8-source.zip -d antlr4-runtime; \
|
||||
cd antlr4-runtime && mkdir build && cd build; \
|
||||
cmake .. -DWITH_LIBCXX=On -DCMAKE_BUILD_TYPE=Release -DWITH_DEMO=False; \
|
||||
make -j; \
|
||||
DESTDIR=run make install; \
|
||||
# Manually copy needed library and includes since install script
|
||||
# does not respect -DCMAKE_INSTALL_DIR and there is no option
|
||||
# to disable shared library build/installation
|
||||
cp -Rf run/usr/local/include/antlr4-runtime /usr/include; \
|
||||
cp -f run/usr/local/lib/libantlr4-runtime.a /usr/lib; \
|
||||
rm -rf /usr/src/antlr4-cpp-runtime-4.8-source.zip; \
|
||||
rm -rf /usr/src/antlr4-runtime
|
||||
|
||||
FROM base
|
||||
COPY --from=libraries /usr/lib /usr/lib
|
||||
COPY --from=libraries /usr/bin /usr/bin
|
||||
|
Loading…
Reference in New Issue
Block a user