summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMatt Oliver <protogonoi@gmail.com>2021-02-13 02:59:42 +1100
committerTimo Rothenpieler <timo@rothenpieler.org>2021-02-22 17:07:30 +0100
commit52cc323735ced6e8095cfd3acea0e36e35c76eb2 (patch)
treeda6e90364c88cb792c60e734f6b931e49d168000 /configure
parentb57037d663415338b3684f0e6164acca92f0d94a (diff)
configure: use no-narrowing for cuda-llvm compilation
This fixes llvm compiler generating errors about narrowing conversion with recent releases. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 336301cb40..98daa1a64a 100755
--- a/configure
+++ b/configure
@@ -6243,7 +6243,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