-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gnovm/pkg/gnolang): add build constraints to fail on 32-bit arch…
…itectures 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
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//go:build 386 | ||
|
||
// Please note that the above build constraint is redundant | ||
// if the name of the file has the suffix "*_386.go" but just | ||
// in case someone is overly zealous and renames this file, | ||
// that guard will ensure that the desired outcomes are achieved. | ||
|
||
package gnolang | ||
|
||
func init() { | ||
// Please see https://github.com/gnolang/gno/issues/3288 | ||
panic("Gno is not supported on 32-bit machines!") | ||
} |