[英]GHC compile progress information
Suppose I have ten modules in my project and GHC is going to recompile the third and fifth, I will see something like the following: 假设我的项目中有十个模块,GHC将重新编译第三个和第五个模块,我将看到如下内容:
[3 of 10] Compiling C ( A.hs, dist/build/p/p/A.o )
[5 of 10] Compiling E ( B.hs, dist/build/p/p/B.o )
I have no idea how many more it's going to compile. 我不知道还有多少要编译。
How can I get it to display progress of the compile process? 如何让它显示编译过程的进度?
GHC does not know in advance how many modules will need to be recompiled. GHC事先并不知道需要重新编译多少个模块。 It uses a fairly sophisticated mechanism for checking whether recompilation is needed. 它使用相当复杂的机制来检查是否需要重新编译。 In you example, module 4 of 10 has been found to need no recompilation. 在您的示例中,已发现10的模块4不需要重新编译。 In short, GHC is going to compile up to 10 modules, or less if you're lucky. 简而言之,如果你幸运的话,GHC将编译多达10个模块或更少。
I don't think you can, short of supplying -fforce-recomp
. 我认为你不能,缺少提供-fforce-recomp
。 I don't think the GHC authors would mind a patch, though (but are probably too busy to do it themselves). 我不认为GHC作者会介意补丁(但可能太忙了,不能自己做)。 All the information needed should be (relatively) easy available. 所有需要的信息应该(相对)容易获得。
尝试使用-dshow-passes
或其他详细标记。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.