commit: 88d805301c5ca721d66d5102aa6ba2747cb2771e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Dec 2 15:24:29 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Dec 2 15:27:14 2024 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=88d80530
crossdev: nvptx: enable zlib+zstd for LTO LTO is used behind-the-scenes between the host and offload to communicate data. We need to use the same compression for both. It's easiest if we just enable both supported compression formats in the offload compiler: zlib and zstd. 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 747ee10..c400ff1 100755 --- a/crossdev +++ b/crossdev @@ -315,6 +315,10 @@ parse_target() { 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 + # Offloading uses LTO to stream data, we need to make sure + # we support whatever compression the host compiler uses + # for that. + GUSE+=" zlib zstd" MULTILIB_USE="yes" #407275 WITH_DEF_HEADERS="no" @@ -901,7 +905,7 @@ AUTOGEN_TAG="# Autogenerated and managed by crossdev" # not tested, or doesn't make sense, or no one simply cares about them GUSE_DISABLE="-d -objc -objc++ -objc-gc -vtv" # These are disabled only for stage1 gcc. Normally need libc presence. -GUSE_DISABLE_STAGE_1="${GUSE_DISABLE} -fortran -go -jit -cxx -openmp -sanitize" +GUSE_DISABLE_STAGE_1="${GUSE_DISABLE} -fortran -go -jit -cxx -openmp -sanitize -zstd -zlib" # These are also disabled for stage2, but could be used later if dependencies # are installed into ${SYSROOT}: # - sanitize needs crypt.h: #799707
