diff options
author | Guido Vranken <guidovranken@users.noreply.github.com> | 2019-03-01 00:50:31 +0100 |
---|---|---|
committer | jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> | 2019-02-28 15:50:31 -0800 |
commit | 1bff6fe295a21cc3f2496c25747f886c0db3f14b (patch) | |
tree | 26cb98f2fd5bf2b5274a7c1381c246c9747ca959 /projects/bignum-fuzzer | |
parent | dfd4be9f9a3d7c65a54778e51181f20cb80381df (diff) | |
download | oss-fuzz-1bff6fe295a21cc3f2496c25747f886c0db3f14b.tar.gz |
[bignum-fuzzer] Build and use latest Golang (#2193)
Diffstat (limited to 'projects/bignum-fuzzer')
-rw-r--r-- | projects/bignum-fuzzer/Dockerfile | 1 | ||||
-rwxr-xr-x | projects/bignum-fuzzer/build.sh | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/projects/bignum-fuzzer/Dockerfile b/projects/bignum-fuzzer/Dockerfile index eac4609b0..87289de32 100644 --- a/projects/bignum-fuzzer/Dockerfile +++ b/projects/bignum-fuzzer/Dockerfile @@ -20,6 +20,7 @@ RUN apt-get update && apt-get install -y software-properties-common python-softw RUN add-apt-repository -y ppa:gophers/archive && apt-get update && apt-get install -y golang-1.9-go RUN ln -s /usr/lib/go-1.9/bin/go /usr/bin/go +RUN git clone --recursive https://github.com/golang/go RUN git clone --depth 1 https://github.com/guidovranken/bignum-fuzzer RUN git clone --depth 1 https://github.com/openssl/openssl RUN hg clone https://gmplib.org/repo/gmp/ libgmp/ diff --git a/projects/bignum-fuzzer/build.sh b/projects/bignum-fuzzer/build.sh index a224d5870..07985058e 100755 --- a/projects/bignum-fuzzer/build.sh +++ b/projects/bignum-fuzzer/build.sh @@ -1,3 +1,14 @@ +# Compile latest Go +cd go/src +./make.bash +cd $SRC + +# Remove previous Go install (used for bootstrapping) +apt-get remove golang-1.9-go -y +rm /usr/bin/go + +export PATH=`realpath $SRC/go/bin`:$PATH + # Install Rust nightly curl https://sh.rustup.rs -sSf | sh -s -- -y source $HOME/.cargo/env |