Skip to content

Commit 6c88566

Browse files
committed
tweak script used to build candidate ghcide in benchmarks
The goal is to convince Cabal to apply the ghc options only to the ghcide binary and not to all the dependencies, which causes massive rebuilds and leads to benchmarks timeouts
1 parent aa5fc7f commit 6c88566

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ghcide/bench/hist/Main.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,15 @@ type instance RuleResult GetSamples = Natural
140140

141141
buildGhcide :: BuildSystem -> [CmdOption] -> FilePath -> Action ()
142142
buildGhcide Cabal args out = do
143+
liftIO $ writeFile "cabal.project.local" $ unlines
144+
[ "package ghcide"
145+
, " ghc-options: -eventlog -rtsopts"]
143146
command_ args "cabal"
144147
["install"
145148
,"exe:ghcide"
146149
,"--installdir=" ++ out
147150
,"--install-method=copy"
148151
,"--overwrite-policy=always"
149-
,"--ghc-options=-rtsopts"
150-
,"--ghc-options=-eventlog"
151152
]
152153

153154
buildGhcide Stack args out =

0 commit comments

Comments
 (0)