aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2020-09-02 04:10:53 -0700
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-09-02 17:48:39 +0200
commit3eab43136cfc3418e59e588c62f1d41f577974ad (patch)
tree57e1422c5ffacd3d284b8f93eb4a737ed80e5a9c
parent4ad4565ddd025570583f877ebdeb7c360509bf93 (diff)
downloadmeson-3eab43136cfc3418e59e588c62f1d41f577974ad.zip
meson-3eab43136cfc3418e59e588c62f1d41f577974ad.tar.gz
meson-3eab43136cfc3418e59e588c62f1d41f577974ad.tar.bz2
environment: do not raise exception in detect_cuda_compiler
when the compiler is not a string. When the compiler is set in the build configuration (required, for example, in a cross-build setup), the compiler setting is already a list, which is the desired type. Signed-off-by: Matt Madison <matt@madison.systems>
-rw-r--r--mesonbuild/environment.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index eb7189c..5600f9d 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -1383,8 +1383,6 @@ class Environment:
for compiler in compilers:
if isinstance(compiler, str):
compiler = [compiler]
- else:
- raise EnvironmentException()
arg = '--version'
try:
p, out, err = Popen_safe(compiler + [arg])