Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 948842

Summary: go-module.eclass: add support of GOAMD64 - for performance
Product: Gentoo Linux Reporter: Vitaly Zdanevich <zdanevich.vitaly>
Component: EclassesAssignee: William Hubbs <williamh>
Status: UNCONFIRMED ---    
Severity: normal CC: ionen, zdanevich.vitaly
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vitaly Zdanevich 2025-01-26 05:50:16 UTC
See https://github.com/golang/wiki/blob/master/MinimumRequirements.md#amd64

Or it should be a USE flag, I do not know.

Related page: https://devmanual.gentoo.org/eclass-reference/go-module.eclass/index.html
Comment 1 Ionen Wolkens gentoo-dev 2025-01-26 05:54:00 UTC
You can just set GOAMD64="v3" or so as fitting in make.conf, not much different than adding -march= in *FLAGS through that.
Comment 2 Vitaly Zdanevich 2025-01-26 06:02:00 UTC
Oh, yes, thanks, I checked - app-shells/fzf built with this...
Comment 3 Ionen Wolkens gentoo-dev 2025-01-26 06:06:04 UTC
(if we really wanted this in the eclass, guess could deduce the feature level from *FLAGS like what qt6-build.eclass does for a workaround, but generally think it's best not assume what the user wants for cpu optimizations)