diff options
author | Sam James <sam@gentoo.org> | 2023-11-24 17:42:25 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-11-24 18:35:04 +0000 |
commit | 6f6e58bd266a7e82f2eff29703a5a819b20ce8f7 (patch) | |
tree | 7af9d22fb978d663abce5e39802be01e1cd743cc /dev-perl/File-Listing | |
parent | go-env.eclass: Reapply "also set GOARM & GO386 when applicable" (diff) | |
download | gentoo-6f6e58bd266a7e82f2eff29703a5a819b20ce8f7.tar.gz gentoo-6f6e58bd266a7e82f2eff29703a5a819b20ce8f7.tar.bz2 gentoo-6f6e58bd266a7e82f2eff29703a5a819b20ce8f7.zip |
go-env.eclass: fix GO386 handling
Go 1.16 dropped explicit support for 386 FP and relies on software
emulation instead in the absence of SSE2.
* First, check if cpu_flags_x86_sse2 is used in the ebuild. If it is and it's
enabled, then act in SSE2 mode.
* If not, fall back to checking whether the compiler has __SSE2__ defined via
e.g. -march in CFLAGS.
* Failing that, use softfloat mode.
Fixes the issue mentioned in 5718f8440197298e0aa1df2a88a66057d2cdaf83 (where
we tried to use a USE flag which isn't implicit).
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-perl/File-Listing')
0 files changed, 0 insertions, 0 deletions