• Linux 5.12 或将支持 Clang LTO

    时间:2022-02-02 19:55:48

    对于 GCC 编译器的替代者 Clang , Linux 或将在 2 月份 5.12 版本中支持其 LTO ( link-time optimizations ) 功能。 这些补丁由谷歌软件工程师 Sami Tolvanen 提交,目前被分类为 for-next/kspp,大致分为两个系列(系列1,系列2),用户可以在 Kconfig 配

  • 如何将lto与静态库一起使用?

    时间:2021-11-10 13:40:46

    WhenItrytobuildstaticlibrarieswith-flto,Igetundefinedreferenceerrors:当我尝试使用-flto构建静态库时,我得到未定义的引用错误:library.cpp:library.cpp:#include<iostream>voi...