-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
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
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// +build amd64 | ||
//go:build amd64 && !purego | ||
// +build amd64,!purego | ||
|
||
#include "textflag.h" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build amd64,!noasm | ||
// +build amd64,!purego | ||
|
||
#include "textflag.h" | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build amd64,!noasm | ||
// +build amd64,!purego | ||
|
||
#include "textflag.h" | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build arm64,!noasm | ||
// +build arm64,!purego | ||
|
||
#include "textflag.h" | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build amd64,!noasm | ||
// +build amd64,!purego | ||
|
||
#include "textflag.h" | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build arm64,!noasm | ||
// +build arm64,!purego | ||
|
||
#include "textflag.h" | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// +build amd64 | ||
//go:build amd64 && !purego | ||
// +build amd64,!purego | ||
|
||
#include "textflag.h" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// +build amd64 | ||
//go:build amd64 && !purego | ||
// +build amd64,!purego | ||
|
||
#include "textflag.h" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build amd64,!noasm | ||
// +build amd64,!purego | ||
|
||
#include "textflag.h" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build arm64,!noasm | ||
// +build arm64,!purego | ||
|
||
#include "textflag.h" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// +build amd64 | ||
//go:build amd64 && !purego | ||
// +build amd64,!purego | ||
|
||
#include "textflag.h" | ||
#include "fp_amd64.h" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// +build amd64 | ||
//go:build amd64 && !purego | ||
// +build amd64,!purego | ||
|
||
#include "textflag.h" | ||
#include "fp_amd64.h" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
//go:build amd64 | ||
// +build amd64 | ||
//go:build amd64 && !purego | ||
// +build amd64,!purego | ||
|
||
package common | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
//go:build !amd64 | ||
// +build !amd64 | ||
//go:build !amd64 || purego | ||
// +build !amd64 purego | ||
|
||
package common | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
//go:build amd64 | ||
// +build amd64 | ||
//go:build amd64 && !purego | ||
// +build amd64,!purego | ||
|
||
package common | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
//go:build !amd64 | ||
// +build !amd64 | ||
//go:build !amd64 || purego | ||
// +build !amd64 purego | ||
|
||
package common | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.