From 32821be623d4cc0ea0136b8e0918f50647d6b50b Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 14 Nov 2021 21:15:30 -0500 Subject: add location nodes to some Feature calls --- mesonbuild/modules/windows.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mesonbuild/modules/windows.py') diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index 4aa7e3a..8285b18 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -150,14 +150,16 @@ class WindowsModule(ExtensionModule): elif isinstance(src, mesonlib.File): yield src.relative_name(), src.fname, src elif isinstance(src, build.CustomTargetIndex): - FeatureNew.single_use('windows.compile_resource CustomTargetIndex in positional arguments', '0.61.0', state.subproject) + FeatureNew.single_use('windows.compile_resource CustomTargetIndex in positional arguments', '0.61.0', + state.subproject, location=state.current_node) # This dance avoids a case where two indexs of the same # target are given as separate arguments. yield (f'{src.get_id()}_{src.target.get_outputs().index(src.output)}', f'windows_compile_resources_{src.get_filename()}', src) else: if len(src.get_outputs()) > 1: - FeatureNew.single_use('windows.compile_resource CustomTarget with multiple outputs in positional arguments', '0.61.0', state.subproject) + FeatureNew.single_use('windows.compile_resource CustomTarget with multiple outputs in positional arguments', + '0.61.0', state.subproject, location=state.current_node) for i, out in enumerate(src.get_outputs()): # Chances are that src.get_filename() is already the name of that # target, add a prefix to avoid name clash. -- cgit v1.1