Ticket #421 (new defect)

Opened 4 years ago

Last modified 17 months ago

Cabal shouldn't try to build split-objs when ghc reports it does not support it

Reported by: duncan Owned by:
Priority: low Milestone: Cabal-1.8
Component: Cabal library Version: HEAD
Severity: normal Keywords:
Cc: Difficulty: easy (<4 hours)
GHC Version: 6.8.3 Platform:

Description

It is possible to build ghc without support for object splitting. In such a case Cabal should refuse to work if the user enables split objs.

All one has to do is to parse the output of ghc --info (which is in a Read/Show format).

See also #24.

Change History

Changed 4 years ago by guest

Note that --info was added in 6.8. I'm not sure what to do with older versions.

Here's the commit in question:

Sun Aug 19 00:37:58 CEST 2007  Ian Lynagh <igloo@earth.li>
  * Implement --info, and change how can_split is defined
  We now get the value of can_split from the SplitObjs setting in the
  build system, rather than working out whether it should be possible
  based on the platform.

Changed 4 years ago by duncan

With older versions there's nothing we can do, we just have to optimistically assume that it supports split-objs.

Changed 17 months ago by elga

Note: See TracTickets for help on using tickets.