Eclipse makefile构建慢...什么给了? [英] Eclipse makefile build is slow... What gives?
问题描述
Eclipse似乎想要通过执行以下操作,对每个正确的工具进行测试:
g ++ -E -P -v -dD /myfolder/.metada /.plugins/org.eclipse.cdt.make.core/specs.cpp
其中specs.cpp是一个空文件。这个步骤似乎是大部分的构建时间。
来自任何人的任何见解?任何方式告诉Eclipse信任这些工具?
我建议您尝试使用您的项目属性的C / C ++ Build Discovery选项页面。我会尝试的第一件事是关闭启用生成扫描仪信息命令选项。
We are avid Eclipse fans -- it is fantastic! But we have about 40 c++ projects (and growing), and building all of these projects, when all projects are up-to-date, takes about half a minute (total). If I were to simply create a bash script that executed "make all" on all 40 projects, it would execute in way less than a second.
Eclipse seems to want to run a test for the proper tools each time by executing:
g++ -E -P -v -dD /myfolder/.metada/.plugins/org.eclipse.cdt.make.core/specs.cpp
where specs.cpp is an empty file. This step seems to be taking most of the build time.
Any insight here from anyone? Any way to tell Eclipse to trust the tools?
I would suggest you to experiment with C/C++ Build Discovery options page of your projects properties. The first thing that I would try is to turn off "Enable generate scanner info command" option.
这篇关于Eclipse makefile构建慢...什么给了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!