diff options
| author | Agniva De Sarker <agnivade@yahoo.co.in> | 2018-06-07 12:43:56 +0530 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-06-07 14:27:48 +0000 |
| commit | 156bbe283cea5237c0461a004aefc3ea3d118023 (patch) | |
| tree | d71dcf7c8bc7c1ebb317cb71c015fef744eadd21 /src | |
| parent | baf399b02e7a17add068b185d8969a50ca2fb8a0 (diff) | |
| download | go-156bbe283cea5237c0461a004aefc3ea3d118023.tar.xz | |
cmd/go/internal: add wasm magic header
This is needed when we are re-building to the wasm target.
Fixes #25774
Change-Id: I5dc47bd7e56c8570b8d2485273ef0d10f2feac6f
Reviewed-on: https://go-review.googlesource.com/116915
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/go/internal/work/exec.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go index 1b4d43c462..00ac90d1eb 100644 --- a/src/cmd/go/internal/work/exec.go +++ b/src/cmd/go/internal/work/exec.go @@ -1565,6 +1565,7 @@ var objectMagic = [][]byte{ {0x00, 0x00, 0x01, 0xEB}, // Plan 9 i386 {0x00, 0x00, 0x8a, 0x97}, // Plan 9 amd64 {0x00, 0x00, 0x06, 0x47}, // Plan 9 arm + {0x00, 0x61, 0x73, 0x6D}, // WASM } func isObject(s string) bool { |
