mirror of https://github.com/google/oss-fuzz.git
[bignum-fuzzer] Build and use latest Golang (#2193)
This commit is contained in:
parent
dfd4be9f9a
commit
1bff6fe295
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue