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

duilib.lib文件编译出来440MB,能否减小? #49

Open
luowen010 opened this issue Jan 3, 2025 · 1 comment
Open

duilib.lib文件编译出来440MB,能否减小? #49

luowen010 opened this issue Jan 3, 2025 · 1 comment

Comments

@luowen010
Copy link

编译环境:vs2022+64bit+MT
操作系统:windows 11 pro 64bit
编译结果:duilib.lib大小430MB
问题:可有什么手段减小lib库的大小,尝试更改项目属性:全程序优化,改为”使用链接时间代码生成“,但无效

感谢!

@rhett-lee
Copy link
Owner

通过修改编译选项,能够减小duilib.lib大小。
具体如下:关闭 /GL 选项,在工程的属性中,C/C++选项卡中,将Whole Program Optimization改为No,然后重新编译。
这个选项关闭后,duilib.lib大小在62MB左右(操作系统:windows 11 pro 64bit,编译环境:vs2022+64bit+MT)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants