Skip to content
  • Simon Marlow's avatar
    [project @ 2005-01-28 12:55:17 by simonmar] · 153b9cb9
    Simon Marlow authored
    Rationalise the BUILD,HOST,TARGET defines.
    
    Recall that:
    
      - build is the platform we're building on
      - host is the platform we're running on
      - target is the platform we're generating code for
    
    The change is that now we take these definitions as applying from the
    point of view of the particular source code being built, rather than
    the point of view of the whole build tree.
    
    For example, in RTS and library code, we were previously testing the
    TARGET platform.  But under the new rule, the platform on which this
    code is going to run is the HOST platform.  TARGET only makes sense in
    the compiler sources.
    
    In practical terms, this means that the values of BUILD, HOST & TARGET
    may vary depending on which part of the build tree we are in.
    
    Actual changes:
    
     - new file: includes/ghcplatform.h contains platform defines for
       the RTS and library code.
    
     - new file: includes/ghcautoconf.h contains the autoconf settings
       only (HAVE_BLAH).  This is so that we can get h...
    153b9cb9