Created attachment 915757 [details] build.log See build log. If gcc-config is set to anything older than GCC 14, hyprlang compilation will fail.
Created attachment 915758 [details] emerge -p hyprlang && emerge --info
FWIW, that build.log looks truncated.
... and wrong as it's using 14 ;)
Created attachment 915759 [details] build.log > FWIW, that build.log looks truncated. Shoot, updated.
We can copy what we're doing in hyprland itself: https://gitweb.gentoo.org/repo/gentoo.git/tree/gui-wm/hyprland/hyprland-0.46.2-r1.ebuild#n69 (BDEPEND + pkg_setup, but arguably should be pkg_pretend instead. That's a whole thing when it comes to these compiler checks.)