win10 生成 dll 尺寸太大,怎么优化 #4844
Answered
by
waruqi
penghongquan
asked this question in
Q&A
-
我使用 xmake create -l c -t shared my_dll 生成例子后 xmake 编译,发现生成的 dll 比较大认为有异常,请问怎么优化呢? |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Mar 16, 2024
Replies: 2 comments 3 replies
-
多大,我看也只有 107k 左右,很正常么。。vs 生成的也要 108k |
Beta Was this translation helpful? Give feedback.
3 replies
-
安利一下 https://github.com/Chuyu-Team/VC-LTL5 可以降低程序大小 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xmake 默认不添加 vs runtimes flags,msvc 默认用的是 MT,cmake 默认用的是 MD ,没可比性。。
你可以切到
set_runtimes("MD")
编译