Monthly Archives: February 2020

-ffunction-sections -fdata-sections -Wl, –gc-sections编译选项

https://gcc.gnu.org/onlinedocs/gcc-7.5.0/gnat_ugn/Compilation-options.html

实际上gcc和clang均可支持。当使用-ffunction-sections -fdata-sections这两个参数编译,并且在链接时使用-[……]

Read more

Posted in tittle tattle | Leave a comment

package command

查询文件属于哪个包:

查询包的基本信息:

[crayon-67ef580f674794450[……]

Read more

Posted in tittle tattle | Leave a comment

ninja: error: manifest ‘build.ninja’ still dirty after 100 tries

网上有很多例子是基于ninja的bug。排除ninja的问题后还有错误:

带上explain参数能显示具体的错误:

查看一下文件时间,Modify time还在[……]

Read more

Posted in tittle tattle | Leave a comment