]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Fix building with NVHPC (NVIDIA HPC SDK).
authorSergey Kosukhin <sergey.kosukhin@mpimet.mpg.de>
Wed, 13 Mar 2024 12:07:13 +0000 (13:07 +0100)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 21 May 2024 21:34:26 +0000 (00:34 +0300)
commit7de966a02b57eb44b77e5b7266e49c324eaad9f6
treeae439a1bdd7aa392eed34a65c367fbe00289b9d7
parent13a0a0fc8fc9db6837f7d42fc3e279ca8cccff8f
liblzma: Fix building with NVHPC (NVIDIA HPC SDK).

NVHPC compiler has several issues that make it impossible to
build liblzma:
  - the compiler fails to produce valid code for delta_decode if the
    vectorization is enabled, which results in failed tests.

This introduces NVHPC-specific workarounds that address the issues.

(This commit was contributed under 0BSD but the author confirmed
that it is fine to backport it to the public domain branches. See
https://github.com/tukaani-project/xz/pull/90#issuecomment-2100185936
and the next two messages.)

(cherry picked from commit 096bc0e3f8fb4bfc4d2f3f64a7f219401ffb4c31)
(cherry picked from commit 65ac20807c1303e80fb8fc28ec810d740078e328)
src/liblzma/delta/delta_decoder.c