简体   繁体   English

未记录的 GHC 标志 -fbuilding-cabal-package 和 --package-db

[英]Undocumented GHC flags -fbuilding-cabal-package and --package-db

The output of cabal build --verbose mentions flags that are not documented in the man pages. cabal build --verbose提到了手册页中没有记录的标志。 GHC is given a flag -fbuilding-cabal-package . GHC 有一个标志-fbuilding-cabal-package ghc-pkg is given a flag --package-db . ghc-pkg被赋予一个标志--package-db My guess is that the latter is a synonym for --package-conf .我的猜测是后者是--package-conf的同义词。 Am I right?我对吗? And what is the former?而前者是什么?

--package-db is documented in the user guide . --package-db记录在用户指南中 It is indeed similar to the old --package-conf flag, see user guide for older ghc .它确实类似于旧的--package-conf标志,请参阅旧版 ghc 的用户指南

-fbuilding-cabal-package is indeed undocumented, there is a ticket about that. -fbuilding-cabal-package确实没有记录,有一张关于那个的 It is designed to be used by cabal only.它被设计为仅供阴谋集团使用。 It changes few compiler messages to look more clear when building package using cabal.在使用 cabal 构建包时,它更改了很少的编译器消息以使其看起来更清晰。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM