Skip to content

Leftovers from cmm-options fix #6377

Closed
Closed
@phadej

Description

@phadej

#6033
cc @angerman


Things that work now (i.e. that I (@hvr) tested manually; these should be turned into testsuite tests long-term):

  • cmm-sources and asm-sources are compiled (in a separate phase like c-sources are) and the resulting object files are linked into the respective component (i.e. like c-sources)
  • cabal sdist properly includes cmm-sources and asm-sources in the src-dist
  • cmm-options are passed (directly) to GHC when compiling cmm-sources
  • asm-options are passed (via -opta) to GHC when compiling asm-sources files
  • ghc-options are NOT passed to compilation of cmm-sources/asm-sources

@23Skidoo:

If I have both preprocessor-generated asm-sources and cmm-sources, won't this add the union of these to the LBI's asmSources?

Actually, this probably will break if I have any preprocessor-generated C files at all.


TODO: forward port b7cd00b to 3.0+

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions