在使用堆栈构建程序时,如何查看-ddump-rule-firings
的输出?
我已在-ddump-rule-firings
文件中将ghc-options
添加到.cabal
并运行stack clean; stack build -v
。规则解雇(以及来自ghc的任何其他输出)未包含在stack
的输出中。
正常的ghc输出似乎没有记录在.stack-work
目录中的任何地方。
其他开发人员有encountered similar issues,但建议的更改(添加--dump-logs
选项)似乎没有实现:
>stack build --dump-logs
Invalid option `--dump-logs'
Usage: stack build [TARGET] [--dry-run] [--pedantic] [--fast]
[--ghc-options OPTION] [--flag PACKAGE:[-]FLAG]
([--dependencies-only] | [--only-snapshot] |
[--only-dependencies]) ([--file-watch] | [--file-watch-poll])
[--exec CMD [ARGS]] [--only-configure] [--trace] [--profile]
[--[no-]library-profiling] [--[no-]executable-profiling]
[--[no-]haddock] [--haddock-arguments HADDOCK_ARGS]
[--[no-]open] [--[no-]haddock-deps] [--[no-]copy-bins]
[--[no-]prefetch] [--[no-]keep-going] [--[no-]force-dirty]
[--[no-]test] [--[no-]rerun-tests]
[--test-arguments TEST_ARGS] [--coverage] [--no-run-tests]
[--[no-]bench] [--benchmark-arguments BENCH_ARGS]
[--no-run-benchmarks] [--[no-]reconfigure]
[--[no-]cabal-verbose] [--[no-]split-objs] [--help]
Build the package(s) in this directory/configuration
答案 0 :(得分:0)
我发现规则会在以下目录中触发转储
.stack-work\dist\ca59d0ab\build\src\Lib.dump-rule-firings
.stack-work\dist\ca59d0ab\build\iterate-strict-exe\iterate-strict-exe-tmp\app\Main.dump-rule-firings