aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/objabi/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/internal/objabi/util.go')
-rw-r--r--src/cmd/internal/objabi/util.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/internal/objabi/util.go b/src/cmd/internal/objabi/util.go
index 02f9d9273a..e28447d141 100644
--- a/src/cmd/internal/objabi/util.go
+++ b/src/cmd/internal/objabi/util.go
@@ -79,10 +79,14 @@ func goppc64() int {
type gowasmFeatures struct {
SignExt bool
+ SatConv bool
}
func (f *gowasmFeatures) String() string {
var flags []string
+ if f.SatConv {
+ flags = append(flags, "satconv")
+ }
if f.SignExt {
flags = append(flags, "signext")
}
@@ -92,6 +96,8 @@ func (f *gowasmFeatures) String() string {
func gowasm() (f gowasmFeatures) {
for _, opt := range strings.Split(envOr("GOWASM", ""), ",") {
switch opt {
+ case "satconv":
+ f.SatConv = true
case "signext":
f.SignExt = true
case "":