diff options
author | Matt Madison <matt@madison.systems> | 2020-09-02 04:10:53 -0700 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-09-02 17:48:39 +0200 |
commit | 3eab43136cfc3418e59e588c62f1d41f577974ad (patch) | |
tree | 57e1422c5ffacd3d284b8f93eb4a737ed80e5a9c | |
parent | 4ad4565ddd025570583f877ebdeb7c360509bf93 (diff) | |
download | meson-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.py | 2 |
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]) |