Skip to content

Commit 90395c7

Browse files
committed
Add syscall/js
1 parent bb26745 commit 90395c7

File tree

5 files changed

+590
-32
lines changed

5 files changed

+590
-32
lines changed

build/build.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ func importWithSrcDir(bctx build.Context, path string, srcDir string, mode build
139139
if installSuffix != "" {
140140
bctx.InstallSuffix += "_" + installSuffix
141141
}
142+
case "syscall/js":
143+
// There are no buildable files in this package, but we need to use files in the virtual directory.
144+
mode |= build.FindOnly
142145
case "math/big":
143146
// Use pure Go version of math/big; we don't want non-Go assembly versions.
144147
bctx.BuildTags = append(bctx.BuildTags, "math_big_pure_go")

compiler/gopherjspkg/fs_vfsdata.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)