Ticket #7706 (closed bug: invalid)

Opened 3 months ago

Last modified 3 months ago

iOS patch no 5: pass host OS and arch to cabal

Reported by: StephenBlackheath Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

WARNING: If this cabal patch ( https://github.com/haskell/cabal/issues/1184#issuecomment-13761018 - adds --host-os and --host-arch options) isn't applied, then *this patch will break all cross compiling*.

Pass the correct host-os and host-arch values to cabal.

Attachments

ios-patch-5a-host-os-passed-to-cabal.patch Download (1.1 KB) - added by StephenBlackheath 3 months ago.
iOS patch 5 rev a: pass --host-os and --host-arch options to cabal in cross compile case

Change History

Changed 3 months ago by StephenBlackheath

iOS patch 5 rev a: pass --host-os and --host-arch options to cabal in cross compile case

Changed 3 months ago by StephenBlackheath

  • status changed from new to patch

Changed 3 months ago by StephenBlackheath

lukexi points out that Simon M said (in Cabal issue 1184) that it would be better to extract the hostOS and hostArch from the ghc passed to cabal via --with-ghc.

Changed 3 months ago by StephenBlackheath

  • status changed from patch to infoneeded

I'll change it to infoneeded because this patch really isn't ready.

Changed 3 months ago by StephenBlackheath

  • status changed from infoneeded to closed
  • resolution set to invalid

We won't do this patch. Cabal is instead going to infer the hostOS and hostArch from ghc instead of passing it explictly.

Note: See TracTickets for help on using tickets.