Nothing Special   »   [go: up one dir, main page]

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

add_deps 的 {inherit = false} 未生效 #4689

Closed
TOMO-CAT opened this issue Feb 4, 2024 · 4 comments
Closed

add_deps 的 {inherit = false} 未生效 #4689

TOMO-CAT opened this issue Feb 4, 2024 · 4 comments
Labels
Milestone

Comments

@TOMO-CAT
Copy link
TOMO-CAT commented Feb 4, 2024

Xmake 版本

xmake v2.8.5

操作系统版本和架构

Linux 720ce3a659a2 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

描述问题

target basic_test 需要依赖 target zumm_server_main 编译完成的二进制,但是通过 add_deps("zumm_server_main") 方式会引入额外的链接参数(zumm_server_main 依赖 zumm_server)。

期待的结果

有两个解决思路

  • add_deps 是不是可以提供类似 add_deps("xxx", {links = {}}) 的功能。
  • 显示指定 targetB 需要在 targetA 编译完成后才能运行,类似于 set_run_deps

工程配置

image

附加信息和错误日志

@TOMO-CAT TOMO-CAT added the bug label Feb 4, 2024
@Issues-translate-bot
Copy link

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


Title: add_deps does not take effect

waruqi added a commit that referenced this issue Feb 5, 2024
@waruqi
Copy link
Member
waruqi commented Feb 5, 2024

等这个 patch #4698 你也可以先试下

@waruqi waruqi added this to the v2.8.7 milestone Feb 5, 2024
@waruqi
Copy link
Member
waruqi commented Feb 5, 2024

再试试 xmake update -s dev

@Issues-translate-bot
Copy link

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


Try xmake update -s dev again

@waruqi waruqi closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants