Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation to mention CGO_ENABLED=0 is not possible #34

Open
dinamic opened this issue Feb 21, 2024 · 0 comments
Open

Documentation to mention CGO_ENABLED=0 is not possible #34

dinamic opened this issue Feb 21, 2024 · 0 comments

Comments

@dinamic
Copy link

dinamic commented Feb 21, 2024

It seems the library is of no help when targetting static binaries. Let's have the documentation updated to indicate this.

/app # CGO_ENABLED=1 time go build .
real	0m 0.13s
user	0m 0.17s
sys	0m 0.10s
/app # CGO_ENABLED=0 time go build .
github.com/kolesa-team/go-webp/encoder: build constraints exclude all Go files in /go/pkg/mod/github.com/kolesa-team/[email protected]/encoder
github.com/kolesa-team/go-webp/decoder: build constraints exclude all Go files in /go/pkg/mod/github.com/kolesa-team/[email protected]/decoder
Command exited with non-zero status 1
real	0m 0.14s
user	0m 0.19s
sys	0m 0.12s
/app #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant