Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,262
    • Issues 4,262
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 404
    • Merge Requests 404
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #7835

Closed
Open
Opened Apr 14, 2013 by Sergei Trofimovich@trofiReporter

ghc --make: allow passign .cmm, .c and .hs files in one command line

TL;DR: Allow users to make one run:

$ ghc --make Test.hs TestPrim.hs test-prims.cmm -o t

instead of series:

$ ghc -c     test-prims.cmm
$ ghc --make test-prims.o Test.hs TestPrim.hs

The buildable example is located at: https://github.com/trofi/cmm-example

I'll just quote my email sent to ghc-devs@ a while ago:

> Hi guys!
> 
> Today I've tried to write a minimal [1] test case for ghc on ia64
> (it SIGSEGVs there).
> 
> The test case consists of a .cmm and some .hs modues.
> 
> I tried to build them in one run as:
>     $ ghc --make Test.hs TestPrim.hs test-prims.cmm -o t
>     ghc: cannot compile this file to desired target: test-prims.cmm
>     Usage: For basic information, try the `--help' option.
> 
> Thus had to use
>     ${GHC} -c     test-prims.cmm
>     ${GHC} --make test-prims.o Test.hs TestPrim.hs
> 
> What do you think of allowing to use .c, .cmm and similar
> files along with .hs files to make one-shot builds a bit easier?
> 
> If noone is opposed I'll fill a request on bugtracker.
> 
> Thanks!
> 
> [1]: https://github.com/trofi/cmm-example
Trac metadata
Trac field Value
Version 7.6.2
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#7835