Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebuild一个target,总会引起他依赖的target也rebuild #4154

Closed
Wzshun opened this issue Aug 31, 2023 · 7 comments
Closed

rebuild一个target,总会引起他依赖的target也rebuild #4154

Wzshun opened this issue Aug 31, 2023 · 7 comments

Comments

@Wzshun
Copy link

Wzshun commented Aug 31, 2023

Xmake 版本

2.8.1

操作系统版本和架构

windows10

描述问题

重新构建一个target,他依赖的target也会触发重新编译。这在某些大的顶层target,不可忍受重新编译的时长。

期待的结果

只重建我指定的target,在依赖项的target没被改动过的前提下。

工程配置

附加信息和错误日志

@Wzshun Wzshun added the bug label Aug 31, 2023
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: rebuild a target, it will always cause the target it depends on to rebuild

Xmake version

2.8.1

OS version and architecture

windows10

Describe the problem

Rebuild a target, and the targets it depends on will also trigger recompilation. For some large top-level targets, the recompilation time is unbearable.

Expected results

Only rebuild the target I specify, provided that the target of the dependency has not been changed.

Project configuration

none

Additional information and error logs

Without

@waruqi
Copy link
Member

waruqi commented Aug 31, 2023

目前只能全局 rebuild,要做成 target 粒度 rebuild 需要做部分重构,可能得费点时间

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


At present, only the global rebuild is possible. To achieve a target granular rebuild, partial refactoring is required, which may take some time.

waruqi added a commit that referenced this issue Aug 31, 2023
@waruqi waruqi added this to the v2.8.3 milestone Aug 31, 2023
@waruqi
Copy link
Member

waruqi commented Aug 31, 2023

改了下,再试试

xmake update -s dev

@waruqi
Copy link
Member

waruqi commented Sep 1, 2023

默认行为不变,还是会自动重建所有依赖

xmake -r target

如果仅仅 rebuild 当前指定的 target,加 --shallow 参数

xmake -r --shallow target

@waruqi waruqi removed the bug label Sep 1, 2023
waruqi added a commit that referenced this issue Sep 1, 2023
@waruqi
Copy link
Member

waruqi commented Sep 1, 2023

我已经 merge 到 dev 了。

@waruqi waruqi closed this as completed Sep 1, 2023
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I have merged to dev.

tokomine pushed a commit to tokomine/xmake that referenced this issue Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants