File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Cabal/src/Distribution/Simple Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,15 @@ mixDir :: FilePath -- ^ \"dist/\" prefix
68
68
-> Way
69
69
-> FilePath -- ^ Component name
70
70
-> FilePath -- ^ Directory containing test suite's .mix files
71
- mixDir distPref way name = hpcDir distPref way </> " mix" </> name
71
+ mixDir distPref way name = hpcDir distPrefBuild way </> " mix" </> name
72
+ where
73
+ -- This is a hack for HPC over test suites, needed to match the directory
74
+ -- where HPC stores .mix files when the main library of the same package
75
+ -- is being processed, perhaps in a previous cabal run (#5213).
76
+ distPrefElements = splitDirectories distPref
77
+ distPrefBuild = case drop (length distPrefElements - 2 ) distPrefElements of
78
+ " t" : _ -> joinPath $ take (length distPrefElements - 2 ) distPrefElements
79
+ _ -> distPref
72
80
73
81
tixDir :: FilePath -- ^ \"dist/\" prefix
74
82
-> Way
You can’t perform that action at this time.
0 commit comments