添加 chef_use_other_target_sources()

This commit is contained in:
Aoran Zeng 2025-08-22 13:11:45 +08:00
parent adca7b3ea2
commit 106cb97e08
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 13 additions and 0 deletions

View File

@ -101,6 +101,18 @@ chef_set_sources_speed_measure_url_with_postfix (Target_t *target, char *postfix
}
/**
* @note : item target standalone
*/
void
chef_use_other_target_sources (Target_t *this, Target_t *other)
{
if (!other->inited) other->preludefn();
this->sources = other->sources;
this->sources_n = other->sources_n;
}
void
chef_allow_english (Target_t *target)
{

View File

@ -21,6 +21,7 @@ pl_python_pdm_prelude (void)
chef_allow_english(this);
chef_allow_user_define(this);
chef_use_other_target_sources (this, &pl_python_group_target);
}