Replies: 2 comments 5 replies
-
只有开了 mode.releasedbg 模式,才会通过 strip -s 走独立的 symbols 符号抽取,而通常使用的 mode.release 不走 strip -s 独立命令 ,直接走 |
Beta Was this translation helpful? Give feedback.
1 reply
-
add_rules("mode.debug", "mode.releasedbg")
if is_mode("releasedbg") then
set_strip("debug")
end
target("add")
set_kind("static")
add_files("src/add.cpp")
target("bar")
set_kind("binary")
add_files("src/main.cpp")
add_deps("add") 完整日志
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
手动 strip -S 后,发现和 xmake 生成的文件大小不一致。
查了下源码,似乎 gnu strip 默认都走
strip -s
?Beta Was this translation helpful? Give feedback.
All reactions