Skip to content

Commit

Permalink
build: configure ldflags to enable compilation with go 1.23 (artela-n…
Browse files Browse the repository at this point in the history
…etwork#5)

Quote from memsize README:
> NOTE: As of Go 1.23, memsize no longer works because of a restriction added by the
> Go toolchain. The Go 1.23 compiler no longer allows access to runtime symbols via
> go:linkname, which prevents memsize from accessing the Stop-the-World
> functionality of the Go runtime.
>
> If your program depends on memsize, you can disable the restriction when building
> your program:
>
>    go build -ldflags=-checklinkname=0

As build is managed by ignite, the configuration in config.yml was altered to
set proper ldflags.
  • Loading branch information
tzdybal authored Oct 8, 2024
1 parent cda9b52 commit 011eabd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
version: 1
build:
ldflags: [ "-checklinkname=0" ]
validation: sovereign
accounts:
- name: alice
Expand Down

0 comments on commit 011eabd

Please sign in to comment.