mesonbuild/meson

Substitute absolute path to files() when used in string formatting

开放

#1,592 创建于 2017年4月9日

 (11 条评论) (0 个反应) (0 位负责人)Python (1,465 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (4,978 个星标)
PR 合并指标
 (平均合并 139天 13小时) (30 天内合并 51 个 PR)

描述

From https://github.com/systemd/systemd/pull/5704#issuecomment-292796493:

But I have a trouble with makes files() work in more complicated cases: I need to a path to libudev.sym to specify it as a substring in -Wl,--version-script= option. I tried '-Wl,--version-script=' + libudev_sym '-Wl,--version-script=@0@'.format(libudev_sym)

In either of those two cases, we should substitute the absolute path to the files() object. I thought about relative paths, but there are too many corner-cases.

贡献者指南