diff options
| author | SmallWood-D <shay.gozan@gmail.com> | 2022-09-25 21:30:03 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-11-29 01:48:27 +0200 |
| commit | d32ee583ada8304fb31d11382bc6055f6239a99b (patch) | |
| tree | 02b30d6a37cfc2e2c9b0aa9f0db0e3e7bf4a3f1a /mesonbuild/dependencies/misc.py | |
| parent | 23fcea16e56cd154f995208a0443e3d8c18bd8bf (diff) | |
| download | meson-d32ee583ada8304fb31d11382bc6055f6239a99b.tar.gz | |
Fix crash when toolchain is missing
Add a MissingCompiler class returned by compiler detecting methods
intead of None - accessing such an object raises a DependencyException
Fixes #10586
Co-authored-by: duckflyer <duckflyer@gmail.com>
Diffstat (limited to 'mesonbuild/dependencies/misc.py')
| -rw-r--r-- | mesonbuild/dependencies/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index a5b1f41f0..e5f92b3cf 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -145,7 +145,7 @@ class ThreadDependency(SystemDependency): self.is_found = True # Happens if you are using a language with threads # concept without C, such as plain Cuda. - if self.clib_compiler is None: + if not self.clib_compiler: self.compile_args = [] self.link_args = [] else: |
