meson/mesonbuild/interpreter
Dudemanguy e9e098b73e build: improve the warning for executables with the same name
adb1a360b9 added the feature and also the
usual meson-style warning to users that might be using the feature but
were not targeting a new enough meson version. Well unfortunately the
warning both doesn't actually work (it didn't take different directories
into account) and is also really slow because it creates an O(N^2) loop
for checking this.

Instead, rework this by adding an additional set that stores a tuple
containing the target name and its subdirectory. We only add this tuple
if the target is an executable since it is the only time it will be
relevant. After that, simply check if the name + subdir combination
already exists in the set along with the target being executable. If so,
then we execute FeatureNew which may possibly warn. This is a simply
O(1) lookup which is way faster. Fixes #12404.
2023-10-25 23:43:40 +03:00
..
primitives Add support for padding zeroes in int.to_string() method 2023-09-09 19:03:22 -04:00
__init__.py interpreter: replace ConfigurationDataObject with ConfigurationDataHolder 2022-01-18 17:53:29 -05:00
compiler.py Compiler checks must use per-subproject options 2023-09-07 06:55:07 -04:00
dependencyfallbacks.py Allow to fallback to cmake subproject 2023-09-22 15:50:26 -04:00
interpreter.py build: improve the warning for executables with the same name 2023-10-25 23:43:40 +03:00
interpreterobjects.py Add env kwarg in generator.process() 2023-10-05 09:59:43 -07:00
kwargs.py interpreter: use typed_kwargs for build_target.objects 2023-10-17 08:09:06 -07:00
mesonmain.py fix implicit_reexport issues and enforce them going forward 2023-07-19 18:31:37 -04:00
type_checking.py interpreter: use typed_kwargs for build_target.objects 2023-10-17 08:09:06 -07:00