Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnp authored Nov 8, 2024
1 parent fccbadb commit 02baef3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \
git checkout .; \
git checkout develop; \
git clean -d -x -f; \
# build solc-v0.5.14
git checkout v0.5.14; \
grep -rl '\-Werror' ./cmake/EthCompilerSettings.cmake | xargs sed -i 's/\-Werror/\-Wno\-error/g'; \
# build solc faster
grep -rl 'make -j2' ./scripts/build.sh | xargs sed -i 's/make -j2/make -j4/g'; \
grep -rl 'sudo make install' ./scripts/build.sh | xargs sed -i 's/sudo make install/make install/g'; \
./scripts/build.sh; \
mv /usr/local/bin/solc /root/.solcx/solc-v0.5.14; \
/root/.solcx/solc-v0.5.14 --version | grep 'Version: 0.5.14+commit.01f1aaa4' || (echo "Incorrect solc-v0.5.14 version" && exit 1); \
git checkout .; \
git checkout develop; \
git clean -d -x -f; \
fi


Expand Down

0 comments on commit 02baef3

Please sign in to comment.