aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-11-30 04:40:54 +0000
committerSam James <sam@gentoo.org>2024-11-30 04:41:20 +0000
commit5fcf21142c9bc90ecae60826e0a2e70357769666 (patch)
treee1e18e4a1697d688c2e9302be8367967a4684e90
parentcrossdev: don't turn off openmp/fortran for nvptx (diff)
downloadcrossdev-5fcf21142c9bc90ecae60826e0a2e70357769666.tar.gz
crossdev-5fcf21142c9bc90ecae60826e0a2e70357769666.tar.bz2
crossdev-5fcf21142c9bc90ecae60826e0a2e70357769666.zip
crossdev: build openmp, fortran by default for nvptx20241130.1
Followup to c272f335f8b0df15f724e9ee3e2289a9deddbd11. Bug: https://bugs.gentoo.org/945296 Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xcrossdev7
1 files 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