Skip to content

Commit

Permalink
Resolve #6869: Track changes in asm/cxx/cmm-sources
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Jun 3, 2020
1 parent ee11888 commit c2f4625
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 c2f4625

Please sign in to comment.