commit:     5fcf21142c9bc90ecae60826e0a2e70357769666
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 30 04:40:54 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 30 04:41:20 2024 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=5fcf2114

crossdev: build openmp, fortran by default for nvptx

Followup to c272f335f8b0df15f724e9ee3e2289a9deddbd11.

Bug: https://bugs.gentoo.org/945296
Signed-off-by: Sam James <sam <AT> gentoo.org>

 crossdev | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/crossdev b/crossdev
index f26da45..1c2650f 100755
--- a/crossdev
+++ b/crossdev
@@ -303,11 +303,14 @@ parse_target() {
                        KPKG="[none]"
                        BPKG="nvptx-tools"
                        LPKG="newlib"
-                       STAGE_DEFAULT=${STAGE_LIBC}
+                       # Offloading targets are only really useful with
+                       # openmp, unless doing standalone bare minimum testing.
+                       # They also often want Fortran.
+                       STAGE_DEFAULT=${STAGE_C_CPP}
+                       GUSE+=" cxx openmp fortran"
 
                        # TODO: deduplicate this with newlib block below
                        GMASK+=" default-stack-clash-protection hardened ssp"
-                       GUSE+=" cxx"
                        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

Reply via email to