Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e746a78

Browse files
committedFeb 1, 2025·
feat(gnovm/pkg/gnolang): add build constraints to fail on 32-bit architectures
This change adds build constraints so as to panic if built for 32-bit architectures as it is a project wide decision not to support them. This allows the mainnet launch without sweating trying to make a bunch of runtime changes for the gnovm. Updates #3288
1 parent c24f69f commit e746a78

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
 

‎README.md

+3
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,6 @@ repository offers more resources to dig into. We are eager to see your first PR!
116116
* [![Go Reference](https://pkg.go.dev/badge/hey/google)](https://gnolang.github.io/gno/github.com/gnolang/gno.html) \
117117
(pkg.go.dev will not show our repository as it has a license it doesn't recognise)
118118
</details>
119+
120+
## Declarations
121+
* Gno is only available for 64-bit architectures!

‎gnovm/pkg/gnolang/nocompile_386.go

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//go:build 386
2+
3+
// Please note that the above build constraint is redundant
4+
// if the name of the file has the suffix "*_386.go" but just
5+
// in case someone is overly zealous and renames this file,
6+
// that guard will ensure that the desired outcomes are achieved.
7+
8+
package gnolang
9+
10+
func init() {
11+
// Please see https://github.com/gnolang/gno/issues/3288
12+
panic("Gno is not supported on 32-bit machines!")
13+
}

0 commit comments

Comments
 (0)
Please sign in to comment.