add_files 无法合并静态库 #7402
Answered
by
Willaaaaaaa
yangyagami
asked this question in
Q&A
-
|
add_files 无法合并静态库 target("foo")
set_kind("static")
add_files("libfunc.a")
add_files("src/xx.cc")libfunc.a 没有被合并到 libfoo.a 里 |
Beta Was this translation helpful? Give feedback.
Answered by
Willaaaaaaa
Mar 16, 2026
Replies: 1 comment 1 reply
-
try this? https://xmake.io/zh/api/description/builtin-policies.html#build-merge-archive also see: https://xmake.io/zh/examples/cpp/merge-static-libraries.html |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yangyagami
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try this? https://xmake.io/zh/api/description/builtin-policies.html#build-merge-archive
also see: https://xmake.io/zh/examples/cpp/merge-static-libraries.html