Skip to content

Commit 0a53153

Browse files
authored
Fix non-asm builds (#1)
Add build tag checks to assembly. Add missing function to fallback.
1 parent 566f3e2 commit 0a53153

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

crc64_amd64.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a license that can be
33
// found in the LICENSE file.
44

5+
//go:build !noasm && !appengine && !gccgo
6+
57
#include "textflag.h"
68

79
TEXT ·updateAsm(SB), $0-40

crc64_arm64.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a license that can be
33
// found in the LICENSE file.
44

5+
//go:build !noasm && !appengine && !gccgo
6+
57
#include "textflag.h"
68

79
TEXT ·updateAsm(SB), $0-40

crc64_other.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
package crc64nvme
88

99
var hasAsm = false
10+
11+
func updateAsm(crc uint64, p []byte) (checksum uint64) { panic("should not be reached") }

0 commit comments

Comments
 (0)