Skip to content

Commit 01f15b4

Browse files
committed
build: Remove custom file overrides for hash/crc32 package.
By now, the crc32 package makes use of functions implemented in architecture-specific files. GopherJS ends up taking on the generic "other architectures" configuration that works when there isn't an architecture-specific CRC32-IEEE algorithm, nor an architecture-specific CRC32-C algorithm. In the future, it's possible hash/crc32 performance can be improved by doing something architecture-specific, but this will do for now. Fixes the following build issue for hash/crc32 package: $ gopherjs build hash/crc32 ../../../usr/local/go/src/hash/crc32/crc32.go:83:23: undeclared name: archAvailableCastagnoli ../../../usr/local/go/src/hash/crc32/crc32.go:86:3: undeclared name: archInitCastagnoli ../../../usr/local/go/src/hash/crc32/crc32.go:87:22: undeclared name: archUpdateCastagnoli ../../../usr/local/go/src/hash/crc32/crc32.go:107:17: undeclared name: archAvailableIEEE ../../../usr/local/go/src/hash/crc32/crc32.go:110:3: undeclared name: archInitIEEE ../../../usr/local/go/src/hash/crc32/crc32.go:111:16: undeclared name: archUpdateIEEE
1 parent bc37a63 commit 01f15b4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

build/build.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ func importWithSrcDir(path string, srcDir string, mode build.ImportMode, install
9595
pkg.GoFiles = []string{"rand.go", "util.go"}
9696
case "crypto/x509":
9797
pkg.CgoFiles = nil
98-
case "hash/crc32":
99-
pkg.GoFiles = []string{"crc32.go", "crc32_generic.go"}
10098
}
10199

102100
if len(pkg.CgoFiles) > 0 {

0 commit comments

Comments
 (0)