Skip to content

Commit c2f4625

Browse files
committed
Resolve #6869: Track changes in asm/cxx/cmm-sources
1 parent ee11888 commit c2f4625

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

cabal-install/Distribution/Client/SourceFiles.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,13 @@ needBuildInfo pkg_descr bi modules = do
144144
-- A.hs-boot; need to track both.
145145
findNeededModules ["hs", "lhs", "hsig", "lhsig"]
146146
findNeededModules ["hs-boot", "lhs-boot"]
147-
traverse_ needIfExists (cSources bi ++ jsSources bi)
147+
traverse_ needIfExists $ concat
148+
[ cSources bi
149+
, cxxSources bi
150+
, jsSources bi
151+
, cmmSources bi
152+
, asmSources bi
153+
]
148154
-- A MASSIVE HACK to (1) make sure we rebuild when header
149155
-- files change, but (2) not have to rebuild when anything
150156
-- in extra-src-files changes (most of these won't affect

changelog.d/issue-6869

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
synopsis: cxx-sources, asm-sources and cmm-sources are change-tracked
2+
packages: cabal-install
3+
issues: #6869

0 commit comments

Comments
 (0)