commit:     9e258378b3b596b14130a8538fc37193e3abd5e1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  1 23:04:50 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec  1 23:04:50 2024 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=9e258378

crossdev: nvptx: disable irrelevant languages and force necessary ones on

Link: https://gcc.gnu.org/legacy-ml/gcc/2018-03/msg00122.html
Bug: https://bugs.gentoo.org/945296
Signed-off-by: Sam James <sam <AT> gentoo.org>

 crossdev | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/crossdev b/crossdev
index 887cf7a..f8f11d5 100755
--- a/crossdev
+++ b/crossdev
@@ -299,6 +299,7 @@ parse_target() {
                        WITH_DEF_HEADERS="no"
                        ;;
 
+               # Offload targets
                nvptx*)
                        KPKG="[none]"
                        BPKG="nvptx-tools"
@@ -308,11 +309,14 @@ parse_target() {
                        # They also often want Fortran.
                        STAGE_DEFAULT=${STAGE_C_CPP}
                        GUSE+=" cxx openmp fortran"
+                       GFORCE+=" cxx openmp fortran"
+                       # 
https://gcc.gnu.org/legacy-ml/gcc/2018-03/msg00122.html
+                       GMASK+=" ada d go graphite modula2 rust"
 
-                       # TODO: deduplicate this with newlib block below
                        GMASK+=" default-stack-clash-protection hardened ssp"
                        GUSE+=" -hardened" #687598, needs 
-fstack-check=specific support
                        GUSE+=" -default-stack-clash-protection -ssp" # SSP 
isn't supported for freestanding anyway
+
                        MULTILIB_USE="yes" #407275
                        WITH_DEF_HEADERS="no"
                        ;;

Reply via email to