开发者

GCC Dependency generation - library headers

开发者 https://www.devze.com 2023-02-10 17:47 出处:网络
I\'m including some files from a library and using the gcc preprocessor to generate the dependencies. Right now, if I don\'t use the -MG option, it includes the library headers as dependencies of my s

I'm including some files from a library and using the gcc preprocessor to generate the dependencies. Right now, if I don't use the -MG option, it includes the library headers as dependencies of my source files. If I use the -MG option (and exclude searching of the library includes when generating dependencies),开发者_运维百科 then it assumes the library headers are auto-generated and does a clean make every time.

Is there a way to treat library headers the same way as system headers?

0

精彩评论

暂无评论...
验证码 换一张
取 消