You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've learned about CGO_ENABLED and build tags recently, so please correct me if I say something wrong.
My goal is to build my project for other OSs and for it to be as light as possible, both on disk and resources. Before all this, I profiled my program and it seems I've got two problems:
It holds one CPU core on 100% all the time. I guess it's sending data to the GPU, but my program is not that big.
Around 78% of the time is spent on runtime.cgocall.
I was reading the README of this project and found out about CGO_ENABLED=0. When I ran the build command to try it (CGO_ENABLED=0 go build -tags noaudio,x11 .), this error showed up:
package github.com/kerudev/cuckoo
imports github.com/kerudev/cuckoo/internal/app
imports github.com/gen2brain/raylib-go/raygui: build constraints exclude all Go files in /home/cristian/go/pkg/mod/github.com/gen2brain/raylib-go/raygui@v0.0.0-20260815042312-80156a59a482
I'd be down to contribute the implementation myself if needed, but I'd like some feedback on the issue first to know why this is happening or if I didn't configure something properly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I've learned about
CGO_ENABLEDand build tags recently, so please correct me if I say something wrong.My goal is to build my project for other OSs and for it to be as light as possible, both on disk and resources. Before all this, I profiled my program and it seems I've got two problems:
runtime.cgocall.I was reading the README of this project and found out about
CGO_ENABLED=0. When I ran the build command to try it (CGO_ENABLED=0 go build -tags noaudio,x11 .), this error showed up:package github.com/kerudev/cuckoo imports github.com/kerudev/cuckoo/internal/app imports github.com/gen2brain/raylib-go/raygui: build constraints exclude all Go files in /home/cristian/go/pkg/mod/github.com/gen2brain/raylib-go/raygui@v0.0.0-20260815042312-80156a59a482I'd be down to contribute the implementation myself if needed, but I'd like some feedback on the issue first to know why this is happening or if I didn't configure something properly.
All reactions