diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-06-11 19:16:34 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-06-11 19:16:34 +0000 |
commit | 87cbbc45a950f382853e2e4cf494cdfab62f0e5b (patch) | |
tree | 0b7b78b0758b88547ca25cfe34fb1a07373d739f /libgo/goarch.sh | |
parent | c5ce6f30886eed5f0bf8a98114bafbd65066b94f (diff) | |
download | gcc-87cbbc45a950f382853e2e4cf494cdfab62f0e5b.tar.gz |
libgo: add riscv and js/wasm as known targets
Incorporates cut down versions of https://golang.org/cl/102835 and
https://golang.org/cl/106256 from the master sources.
This will tell go/build to skip files with those tags.
Reviewed-on: https://go-review.googlesource.com/117996
From-SVN: r261451
Diffstat (limited to 'libgo/goarch.sh')
-rwxr-xr-x | libgo/goarch.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/goarch.sh b/libgo/goarch.sh index 11bca7bb18f..f5c0a34b1da 100755 --- a/libgo/goarch.sh +++ b/libgo/goarch.sh @@ -153,6 +153,11 @@ case $goarch in ;; esac ;; + riscv) + family=RISCV + pcquantum=2 + ptrsize=4 + ;; riscv64) family=RISCV64 pcquantum=2 @@ -198,6 +203,10 @@ case $goarch in defaultphyspagesize=8192 pcquantum=4 ;; + wasm) + family=WASM + defaultphyspagesize=65536 + ;; *) echo 1>&2 "unrecognized goarch value \"$goarch\"" exit 1 |