Changes between Version 51 and Version 52 of Building/CrossCompiling/iOS


Ignore:
Timestamp:
Dec 23, 2013 10:05:14 AM (20 months ago)
Author:
lukexi
Comment:

Added stronger wording about removing jobs: $ncpus from cabal config

Legend:

Unmodified
Added
Removed
Modified
  • Building/CrossCompiling/iOS

    v51 v52  
    6969Check out the latest version of Cabal from [https://github.com/haskell/cabal/], and build both Cabal and cabal-install.
    7070
     71You must remove an option that the latest version of Cabal will add to your {{{~/.cabal/config}}} file:
     72{{{
     73jobs: $ncpus
     74}}}
     75which triggers an "external" build method that doesn't yet work with cross-compilation (you might see strange errors like "No cabal file found" or other mysterious failures). Commenting it out should fix it.
     76
    7177The ghc-ios-scripts directory you checked out earlier contains two wrappers called {{{arm-apple-darwin10-cabal}}} and {{{i386-apple-darwin11-cabal}}}. These will pass the right arguments to cabal, so you can do, for example:
    7278
     
    8490i386-apple-darwin11-cabal install text --disable-library-profiling
    8591}}}
    86 
    87 If you get errors like "No cabal file found", you've probably got the option
    88 {{{
    89 jobs: $ncpus
    90 }}}
    91 (currently placed by default by newer cabals), which triggers an "external" build method that doesn't yet work with cross-compilation. Commenting it out should fix it.
    9292
    9393=== 7. Make sure hsc2hs is new enough ===