[GHC] #7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling

GHC cvs-ghc at haskell.org
Sun Mar 3 13:57:55 CET 2013


#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling
--------------------------------+-------------------------------------------
  Reporter:  StephenBlackheath  |          Owner:                  
      Type:  feature request    |         Status:  new             
  Priority:  normal             |      Milestone:                  
 Component:  Compiler           |        Version:  7.7             
Resolution:                     |       Keywords:                  
        Os:  Unknown/Multiple   |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown       |     Difficulty:  Unknown         
  Testcase:                     |      Blockedby:                  
  Blocking:  7724               |        Related:                  
--------------------------------+-------------------------------------------

Comment(by StephenBlackheath):

 Here's what's going on: ghc-pwd is built in the final stage and so it's
 for the target. Our iOS compiler generates .a files in place of
 executables, so it produces ghc-pwd.a.

 Unfortunately it's not as simple as just changing exeext to .a, because we
 need to make sure a different exeext is used for host and target
 executables.

 Should I just go through all the exeexts and change them based on whether
 it's host or target? Or is it better to keep it simple and come up with a
 way to avoid ghc-pwd being installed into inplace/bin/ when Stage1Only=YES
 is selected in mk/build.mk (as we do when building cross compilers)?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7709#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list