Skip to content

Commit 154f1bd

Browse files
committed
Align to the purego build tag, removing noasm build tag
The `purego` build tag has been proposed[1] as the de-facto tag for pure Go builds. This is a superset of the `noasm` tag currently used. This patch aligns the code base to toggle to pure Go implementation when `purego` is defined. Verified that all assembly is excluded by doing: find . -name '*.s' -exec sed -i -e '$athis-is-not-valid-assembly 12345' {} \; go test --tags purego ./... [1]: golang/go#23172
1 parent a4b7601 commit 154f1bd

51 files changed

Lines changed: 85 additions & 77 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ GOARCH ?=
1616
BUILD_ARCH = $(shell $(GO) env GOARCH)
1717

1818
ifeq ($(NOASM),1)
19-
OPTS+=--tags noasm
19+
OPTS+=--tags purego
2020
endif
2121

2222
ifeq ($(V),1)

dh/csidh/fp511_amd64.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build amd64 && !noasm
2-
// +build amd64,!noasm
1+
//go:build amd64 && !purego
2+
// +build amd64,!purego
33

44
package csidh
55

dh/csidh/fp511_amd64.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// +build amd64
1+
//go:build amd64 && !purego
2+
// +build amd64,!purego
23

34
#include "textflag.h"
45

dh/sidh/internal/p434/arith_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build amd64,!noasm
1+
// +build amd64,!purego
22

33
#include "textflag.h"
44

dh/sidh/internal/p434/arith_amd64_test.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dh/sidh/internal/p434/arith_decl.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dh/sidh/internal/p434/arith_generic.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dh/sidh/internal/p503/arith_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build amd64,!noasm
1+
// +build amd64,!purego
22

33
#include "textflag.h"
44

dh/sidh/internal/p503/arith_amd64_test.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dh/sidh/internal/p503/arith_arm64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build arm64,!noasm
1+
// +build arm64,!purego
22

33
#include "textflag.h"
44

0 commit comments

Comments
 (0)