diff options
author | Joel Sing <joel@sing.id.au> | 2020-06-02 23:34:06 +1000 |
---|---|---|
committer | Joel Sing <joel@sing.id.au> | 2020-10-27 03:58:50 +0000 |
commit | 4f2d2134764b0b7654105ac2d6f75a75cdc1de56 (patch) | |
tree | c8778c465f27da80302614640820a16084a1f92b /src/cmd/compile/internal/gc/main.go | |
parent | a19cf510af8182751fefc16ce962f91fe17c1e1b (diff) | |
download | go-4f2d2134764b0b7654105ac2d6f75a75cdc1de56.tar.gz go-4f2d2134764b0b7654105ac2d6f75a75cdc1de56.zip |
cmd/compile,cmd/internal/sys: enable additional build modes on linux/riscv64
Enable c-archive, c-shared, shared and pie build modes for linux/riscv64.
Change-Id: I15a8a51b84dbbb82a5b6592aec84a7f09f0cc37f
Reviewed-on: https://go-review.googlesource.com/c/go/+/263457
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/gc/main.go')
-rw-r--r-- | src/cmd/compile/internal/gc/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/main.go b/src/cmd/compile/internal/gc/main.go index 4b401f2aa4..0b65e8a0b4 100644 --- a/src/cmd/compile/internal/gc/main.go +++ b/src/cmd/compile/internal/gc/main.go @@ -130,7 +130,7 @@ func hidePanic() { // supportsDynlink reports whether or not the code generator for the given // architecture supports the -shared and -dynlink flags. func supportsDynlink(arch *sys.Arch) bool { - return arch.InFamily(sys.AMD64, sys.ARM, sys.ARM64, sys.I386, sys.PPC64, sys.S390X) + return arch.InFamily(sys.AMD64, sys.ARM, sys.ARM64, sys.I386, sys.PPC64, sys.RISCV64, sys.S390X) } // timing data for compiler phases |