Commit 05b54ab8 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added bootstrapping on aarch64

parent 3736fe88
......@@ -5,6 +5,9 @@
<exec executable="tar" failonerror="true">
<arg line="xf ${basedir}/packages/go/go1.4-bootstrap-20171003.tar.gz -C ${builddir}"/>
</exec>
<exec executable="patch" dir="${builddir}/go" failonerror="true">
<arg line="-Np1 -i ${basedir}/packages/go/go1.4-aarch64.patch"/>
</exec>
<exec executable="./make.bash" dir="${makedir}/src"/>
<move file="${builddir}/go" tofile="${builddir}/go1.4"/>
<exec executable="tar" failonerror="true">
......
diff -uNr go/src/cmd/dist/unix.c go-aarch64/src/cmd/dist/unix.c
--- go/src/cmd/dist/unix.c 2017-11-22 01:33:56.000000000 +0000
+++ go-aarch64/src/cmd/dist/unix.c 2020-07-19 13:15:08.918268845 +0000
@@ -706,7 +706,7 @@
gohostarch = "amd64";
else if(hassuffix(u.machine, "86"))
gohostarch = "386";
- else if(contains(u.machine, "arm"))
+ else if(contains(u.machine, "arm") || contains(u.machine, "aarch64"))
gohostarch = "arm";
else
fatal("unknown architecture: %s", u.machine);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment