[FFmpeg-devel] [PATCH 2/2] configure: Use no-narrowing for cuda_llvm compilation.

Matt Oliver protogonoi at gmail.com
Fri Feb 12 17:59:42 EET 2021


This fixes llvm compiler generating errors about narrowing conversion with
recent releases.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index df298b4b9b..e716f6f932 100755
--- a/configure
+++ b/configure
@@ -6242,7 +6242,7 @@ fi
 if enabled cuda_nvcc; then
     nvccflags="$nvccflags -ptx"
 else
-    nvccflags="$nvccflags -S -nocudalib -nocudainc --cuda-device-only
-include ${source_link}/compat/cuda/cuda_runtime.h"
+    nvccflags="$nvccflags -S -nocudalib -nocudainc --cuda-device-only
-Wno-c++11-narrowing -include ${source_link}/compat/cuda/cuda_runtime.h"
     check_nvcc cuda_llvm
 fi

-- 
2.30.0.windows.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-configure-Use-no-narrowing-for-cuda_llvm-compilation.patch
Type: application/octet-stream
Size: 884 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210213/4002fc5f/attachment.obj>


More information about the ffmpeg-devel mailing list