Skip to content

Commit cc4bb62

Browse files
authored
[benchmark] check digests for input files only (#1314)
Getting some weird crashes without this change: ``` Error when running Shake build system: at want, called at bench/hist/Main.hs:87:16 in main:Main * Depends on: bench_example_HLS at need, called at src/Development/Benchmark/Rules.hs:154:37 in shake-bench-0.1.0.0-inplace:Development.Benchmark.Rules * Depends on: bench-results/bench_example_HLS/HEAD/edit.heap.svg * Raised the exception: bench-results/bench_example_HLS/HEAD/edit.heap.svg: openFile: resource busy (file is locked) Benchmark benchHist: ERROR cabal: Benchmarks failed for bench:benchHist from ghcide-0.7.2.0. ```
1 parent dc13d98 commit cc4bb62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ghcide/bench/hist/Main.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ type instance RuleResult GetExample = Maybe Example
6666
type instance RuleResult GetExamples = [Example]
6767

6868
main :: IO ()
69-
main = shakeArgs shakeOptions {shakeChange = ChangeModtimeAndDigest, shakeThreads = 0} $ do
69+
main = shakeArgs shakeOptions {shakeChange = ChangeModtimeAndDigestInput, shakeThreads = 0} $ do
7070
createBuildSystem $ \resource -> do
7171
configStatic <- liftIO $ readConfigIO config
7272
let build = outputFolder configStatic

0 commit comments

Comments
 (0)