Skip to content

Commit

Permalink
feat: update build tags for 32 bit target
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Oct 22, 2024
1 parent e303fc2 commit 548dfd1
Show file tree
Hide file tree
Showing 25 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion ecc/bls12-377/fp/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls12-377/fr/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls12-377/fr/vector_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls12-381/fp/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls12-381/fr/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls12-381/fr/vector_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls24-315/fp/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls24-315/fr/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls24-315/fr/vector_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls24-317/fp/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls24-317/fr/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bls24-317/fr/vector_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bn254/fp/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bn254/fp/vector_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bn254/fr/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bn254/fr/vector_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bw6-633/fp/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bw6-633/fr/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bw6-761/fp/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/bw6-761/fr/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/stark-curve/fp/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/stark-curve/fp/vector_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/stark-curve/fr/element_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecc/stark-curve/fr/vector_purego.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions field/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,17 @@ func GenerateFF(F *config.FieldConfig, outputDir, asmDirBuildPath, asmDirInclude
}

// purego files have no build tags if we don't generate asm
pureGoBuildTag := "purego"
pureGoBuildTag := "purego || (!amd64 && !arm64)"
if !F.GenerateOpsAMD64 && !F.GenerateOpsARM64 {
pureGoBuildTag = ""
} else if !F.GenerateOpsARM64 {
pureGoBuildTag = "purego || arm64"
pureGoBuildTag = "purego || (!amd64)"
}
pureGoVectorBuildTag := "purego"
pureGoVectorBuildTag := "purego || (!amd64 && !arm64)"
if !F.GenerateVectorOpsAMD64 && !F.GenerateVectorOpsARM64 {
pureGoVectorBuildTag = ""
} else if !F.GenerateVectorOpsARM64 {
pureGoVectorBuildTag = "purego || arm64"
pureGoVectorBuildTag = "purego || (!amd64)"
}

var g errgroup.Group
Expand Down

0 comments on commit 548dfd1

Please sign in to comment.