ffmpeg: use unwrapped clang for cuda-llvm support

The build system retargets clang for the appropriate nvidia arch
and doesn't depend on anything from the wrappers. Since the wrappped
compiler sets the flags for the original arch, it now includes
`-mtls-dialect=gnu2` on x86_64, which is not a supported flag for the
retargeted clang.
This commit is contained in:
Sergei Zimmerman
2026-05-13 23:00:47 +03:00
parent 851fd9401f
commit 817b0e1338
@@ -841,7 +841,7 @@ stdenv.mkDerivation (
++ optionals stdenv.hostPlatform.isx86 [ nasm ]
# Texinfo version 7.1 introduced breaking changes, which older versions of ffmpeg do not handle.
++ optionals (lib.versionAtLeast version "6") [ texinfo ]
++ optionals withCudaLLVM [ clang ]
++ optionals withCudaLLVM [ clang.cc ]
++ optionals withCudaNVCC [ cuda_nvcc ];
buildInputs =