Changes between Version 42 and Version 43 of Building/CrossCompiling/iOS


Ignore:
Timestamp:
Oct 26, 2013 12:43:18 AM (21 months ago)
Author:
lukexi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/CrossCompiling/iOS

    v42 v43  
    99 
    1010GHC 7.8 already includes a fix for this. 
    11  
    12 You'll also need to apply #8445 and #8444 until they're merged. 
    1311 
    1412== Steps == 
     
    3836=== 4. Create a build.mk file === 
    3937 
    40 GHC requires you to write a '''mk/build.mk''' file, and the following one works. {{{integer-simple}}} must be used, because the default implementation doesn't compile on iOS. {{{Stage1Only}}} is needed for cross-compiling. 
    41  
     38GHC requires you to write a '''mk/build.mk''' file — we've integrated the correct configuration into {{{build.mk.sample}}}, so just copy/rename that to {{{build.mk}}} and uncomment the line: 
    4239{{{ 
    43 GhcStage1HcOpts      = -O -fllvm 
    44 HADDOCK_DOCS         = NO 
    45 BUILD_DOCBOOK_HTML   = NO 
    46 BUILD_DOCBOOK_PS     = NO 
    47 BUILD_DOCBOOK_PDF    = NO 
    48 SPLIT_OBJS           = NO 
    49 INTEGER_LIBRARY      = integer-simple 
    50 Stage1Only           = YES 
    51 DYNAMIC_GHC_PROGRAMS = NO 
    52 GhcLibWays           = v 
     40BuildFlavour  = quick-cross 
    5341}}} 
    5442 
     
    119107 
    120108=== 9. Compile your Haskell code === 
    121  
    122 Open a terminal and add {{{/usr/local/ghc-ios/bin:/usr/local/ghc-ios-sim/bin}}} to your {{{PATH}}} environment variable. 
    123109 
    124110Here's a skeleton '''haskell.hs''' to get you started: