Skip to content

Commit 106cb97

Browse files
committed
添加 chef_use_other_target_sources()
1 parent adca7b3 commit 106cb97

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/framework/chef.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ chef_set_sources_speed_measure_url_with_postfix (Target_t *target, char *postfix
101101
}
102102

103103

104+
/**
105+
* @note 用于: 组中的 item target 在 standalone 模式时正确填充源信息
106+
*/
107+
void
108+
chef_use_other_target_sources (Target_t *this, Target_t *other)
109+
{
110+
if (!other->inited) other->preludefn();
111+
this->sources = other->sources;
112+
this->sources_n = other->sources_n;
113+
}
114+
115+
104116
void
105117
chef_allow_english (Target_t *target)
106118
{

src/recipe/lang/Python/PDM.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pl_python_pdm_prelude (void)
2121
chef_allow_english(this);
2222
chef_allow_user_define(this);
2323

24+
chef_use_other_target_sources (this, &pl_python_group_target);
2425
}
2526

2627

0 commit comments

Comments
 (0)