Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve #6869: Track changes in asm/cxx/cmm-sources #6870

Merged
merged 1 commit into from
Jun 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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