Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Aug 28, 2011
  1. @igfoo

    By default, be lax about dependencies on GHC

    igfoo authored
    There are a number of things which technically depend on GHC (e.g. if
    ghc changes then Haskell files may be compiled differently, or Cabal
    packages may be configured differently). However, in practice, having
    a real dependency on GHC is just a pain: We normally don't want to
    spend time recompiling other things while we're working on the
    compiler, and even if we did, GHC will normally decide compilation
    isn't needed anyway. So by default we use order-only dependencies on
    GHC, i.e. GHC must exist, but if it's newer than other targets then
    rebuilding is not necessary.
Commits on Apr 29, 2011
  1. @igfoo
Commits on Jan 27, 2011
  1. @igfoo

    Fix "make 1" etc following the build system changes

    igfoo authored
    The logic is now in mk/ rather than being duplicated in
    ghc/Makefile and compiler/Makefile.
Commits on Jan 24, 2011
  1. @igfoo
Commits on Jan 23, 2011
  1. @igfoo
Commits on Jan 22, 2011
  1. @igfoo

    Simplify the build system, and remove 2 phases

    igfoo authored
    Phase 0:
        Includes: files for things built by the
                  bootstrapping compiler.
        Builds:   the dependency files for hsc2hs and genprimopcode. We need
                  to do this now, as hsc2hs needs to be buildable in phase 1's
                  includes (so that we can make the hpc library's .hs source
                  files, which in turn is necessary for making its dependency
                  files), and genprimopcode needs to be buildable in phase 1's
                  includes (so that we can make the primop-*.hs-incl files,
                  which are sources for the stage1 compiler library, and thus
                  necessary for making its dependency files).
    Phase 1:
        Includes: dependency files for things built by the bootstrapping
        Builds: files for everything else. Note that this
                  requires configuring the packages, which means telling cabal
                  which ghc to use, and thus the stage1 compiler gets built
                  during this phase. 
    Phase "":
        Includes: dependency files for everything else.
        Builds:   Everything else.
Commits on Jan 15, 2011
  1. @igfoo

    Build system improvements

    igfoo authored
    We no longer use dummy-ghc; instead we don't configure most packages
    until the stage1 compiler is available.
    We also now use Cabal for building the ghc-bin package.
    There are a couple more sanity checks too.
  2. @igfoo

    Whitespace tweak

    igfoo authored
Commits on Dec 14, 2010
  1. @igfoo
Commits on Dec 7, 2010
  1. @igfoo

    Make CPPFLAGS variables, as well as CFLAGS and LDFLAGS

    igfoo authored
    This fixes the "does unsetenv return void" test in the unix package on
    OS X, if I tell it to make 10.4-compatible binaries. The test uses
    CPPFLAGS but not CFLAGS, so it thought it returned int (as it was
    in 10.5-mode), but the C compiler (using CFLAGS, so in 10.4 mode)
    thought it returned void.
    I also added CONF_LD_OPTS_STAGE$3 to the list of things in LDFLAGS,
    which looks like an accidental ommission.
Commits on Nov 27, 2010
  1. @igfoo

    Always enable the archive-loading code

    igfoo authored
    If the GHCi .o lib doesn't exist, load the .a instead
Commits on Sep 21, 2010
  1. @simonmar

    add a simple trace facility to the build system

    simonmar authored
      make TRACE=1
    prints most of the macro calls and their arguments.  It's easy to
    trace new macros; see rules/
Commits on Sep 20, 2010
  1. @igfoo
Commits on Jul 23, 2010
  1. @igfoo
Commits on Jun 16, 2010
  1. @igfoo
Commits on May 25, 2010
  1. @igfoo
Commits on May 9, 2010
  1. @igfoo

    Add version constraints for the boot packages; fixes trac #3852

    igfoo authored
    When using the bootstrapping compiler, we now explicitly constrain
    the version of boot packages (Cabal, extensible-exceptions, etc) to the
    in-tree version, so that the build system is less fragile should the
    user have a newer version installed for the bootstrapping compiler.
Commits on Sep 17, 2009
  1. @mchakravarty


    mchakravarty authored
    - Needed to get arch-dependent options, eg, on Snow Leopard
Commits on Sep 13, 2009
  1. @igfoo

    Don't register the non-munged stage1 ghc package

    igfoo authored
    It confuses the build system.
Commits on Sep 11, 2009
  1. @igfoo
  2. @igfoo
  3. @simonmar

    Fix build with GHC <= 6.10.1

    simonmar authored
Commits on Aug 26, 2009
  1. @mkilian

    Configurable iconv header and library locations

    mkilian authored
    Should help to fix the build on OpenBSD (together with a corresponding
    patch to libraries/base).
Commits on Aug 20, 2009
  1. @igfoo

    Fix library installation; fixes #3374

    igfoo authored
    When configuring packages, enable library profiling and shared libraries
    based on the ways in GhcLibWays.
  2. @igfoo
Commits on Jun 15, 2009
  1. @igfoo

    Make sure we aren't passing -Werror in the CFLAGS for configure scripts

    igfoo authored
    When configure tests for a feature it may not generate warning-free C
    code, and thus may think that the feature doesn't exist if -Werror is
  2. @igfoo
Commits on May 30, 2009
  1. @igfoo

    Quote commands that we run, so they work if there are space in their …

    igfoo authored
    I've also added some missing $s to some makefiles. These aren't
    technically necessary, but it's nice to be consistent.
Commits on May 19, 2009
  1. @dcoutts

    Pass --enable-shared and --with-hscolour to ghc-cabal configure

    dcoutts authored
    It tried to do this already, but the make variable name was wrong.
Commits on May 15, 2009
  1. @simonmar

    cleanup: remove reference to $1_$2_CONFIGURE_FLAGS, which is never used

    simonmar authored
    we also have $1_$2_CONFIGURE_OPTS, which is used.
Commits on Apr 29, 2009
  1. @dcoutts

    Build library packages as shared libs

    dcoutts authored
    when we configure ghc with --enable-shared
Commits on Apr 28, 2009
  1. @simonmar

    Add a header to all build system files:

    simonmar authored
    # -----------------------------------------------------------------------------
    # (c) 2009 The University of Glasgow
    # This file is part of the GHC build system.
    # To understand how the build system works and how to modify it, see
    # -----------------------------------------------------------------------------
Commits on Apr 26, 2009
  1. @igfoo

    GHC new build system megapatch

    igfoo authored
Something went wrong with that request. Please try again.