diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2021-06-12 23:52:21 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-06-13 14:28:08 -0400 |
| commit | 0c7cdb18624283fe1655d28d0df0867d21838491 (patch) | |
| tree | 55601246e936308528a7d8a7b6391ec48b8243d0 | |
| parent | 15fb6a407f06eae35b9d1ab72953bfdf7d9aa5ed (diff) | |
| download | meson-0c7cdb18624283fe1655d28d0df0867d21838491.tar.gz | |
minit: do not misdetect files suffixed as "" or named "." or "c" or "s" as c#
You cannot `str() in str()` and expect it to act like `str() in list()`.
Fixes regression in commit bbc2745dccc40761989a3e1efbe5a69eea0bc77e
Unbreaks #6573
Fixes #8872
| -rw-r--r-- | mesonbuild/minit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py index 8707c0691..efc5d2cd6 100644 --- a/mesonbuild/minit.py +++ b/mesonbuild/minit.py @@ -105,7 +105,7 @@ def autodetect_options(options: 'argparse.Namespace', sample: bool = False) -> N if f.suffix in ('.cc', '.cpp'): options.language = 'cpp' break - if f.suffix in '.cs': + if f.suffix == '.cs': options.language = 'cs' break if f.suffix == '.cu': |
