Skip to content

Commit 7d8bbe1

Browse files
committed
Fix config src dir
1 parent f18398f commit 7d8bbe1

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

mesonbuild/modules/feature/module.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,13 @@ def multi_target_method(self, state: 'ModuleState',
390390
' \\\n'.join(dispatch_calls),
391391
'',
392392
]
393-
config_path = os.path.join(state.backend.src_to_build, state.subdir, config_name)
393+
394+
src_dir = state.environment.source_dir
395+
sub_dir = state.subdir
396+
if sub_dir:
397+
src_dir = os.path.join(src_dir, state.subdir)
398+
config_path = os.path.abspath(os.path.join(src_dir, config_name))
399+
394400
mlog.log(
395401
"Generating", config_name, 'into path', config_path,
396402
"based on the specifed targets"

0 commit comments

Comments
 (0)