Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948842 - go-module.eclass: add support of GOAMD64 - for performance
Summary: go-module.eclass: add support of GOAMD64 - for performance
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-26 05:50 UTC by Vitaly Zdanevich
Modified: 2025-01-28 20:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)