From 3eab43136cfc3418e59e588c62f1d41f577974ad Mon Sep 17 00:00:00 2001 From: Matt Madison Date: Wed, 2 Sep 2020 04:10:53 -0700 Subject: 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 --- mesonbuild/environment.py | 2 -- 1 file changed, 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]) -- cgit v1.1