How do I find out why g++ takes a very long time on a particular file?

后端 未结 8 1388
日久生厌
日久生厌 2021-02-01 21:51

I am building a lot of auto-generated code, including one particularly large file (~15K lines), using a mingw32 cross compiler on linux. Most files are extremely quick, but thi

8条回答
  •  北荒
    北荒 (楼主)
    2021-02-01 22:39

    It most probably includes TONNES of includes. I believe -MD will list out all the include files in a given CPP file (That includes includes of includes and so forth).

提交回复
热议问题