Skip to content

Commit

Permalink
Merge pull request #6870 from phadej/issue-6869
Browse files Browse the repository at this point in the history
Resolve #6869: Track changes in asm/cxx/cmm-sources
  • Loading branch information
phadej authored Jun 3, 2020
2 parents 1148ecf + c2f4625 commit b47dd2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cabal-install/Distribution/Client/SourceFiles.hs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,13 @@ needBuildInfo pkg_descr bi modules = do
-- A.hs-boot; need to track both.
findNeededModules ["hs", "lhs", "hsig", "lhsig"]
findNeededModules ["hs-boot", "lhs-boot"]
traverse_ needIfExists (cSources bi ++ jsSources bi)
traverse_ needIfExists $ concat
[ cSources bi
, cxxSources bi
, jsSources bi
, cmmSources bi
, asmSources bi
]
-- A MASSIVE HACK to (1) make sure we rebuild when header
-- files change, but (2) not have to rebuild when anything
-- in extra-src-files changes (most of these won't affect
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/issue-6869
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
synopsis: cxx-sources, asm-sources and cmm-sources are change-tracked
packages: cabal-install
issues: #6869

0 comments on commit b47dd2d

Please sign in to comment.