[poll] ghc --make extension

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[poll] ghc --make extension

Sergei Trofimovich
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

--

  Sergei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130324/2694b02c/attachment.pgp>

Reply | Threaded
Open this post in threaded view
|

[poll] ghc --make extension

Edward Z. Yang
Go ahead and open a ticket for this.

Excerpts from Sergei Trofimovich's message of Sat Mar 23 23:36:49 -0700 2013:

> 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
>