Skip to content

Commit 2c600ff

Browse files
mattyclarksonarmfazh
authored andcommittedApr 8, 2024
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 2c600ff

Some content is hidden

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

51 files changed

+85
-77
lines changed
 

‎Makefile

+1-1
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

+2-2
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

0 commit comments

Comments
 (0)