1. 05 Oct, 2014 1 commit
    • Herbert Valerio Riedel's avatar
      Implement `MIN_VERSION_GLASGOW_HASKELL()` macro · 3549c952
      Herbert Valerio Riedel authored
      This exposes the `cProjectPatchLevel{1,2}` value at the CPP level to
      allow it to be used in CPP conditionals. Concretely, GHC
      would result in
        #define __GLASGOW_HASKELL__             710
        #define __GLASGOW_HASKELL_PATCHLEVEL1__ 2
        #define __GLASGOW_HASKELL_PATCHLEVEL2__ 20150623
      while GHC 7.10.3 results in
        #define __GLASGOW_HASKELL__             710
        #define __GLASGOW_HASKELL_PATCHLEVEL1__ 3
      and finally GHC 7.9.20141009 results in
        #define __GLASGOW_HASKELL__             709
        #define __GLASGOW_HASKELL_PATCHLEVEL1__ 20141009
      As it's error-prone to properly express CPP conditionals for testing GHC
      multi-component versions, a new macro `MIN_VERSION_GLASGOW_HASKELL()` is
      provided (also via the new CPP include file `ghcversion.h`)
      Finally, in order to make it easier to define the new CPP macro
      `MIN_VERSION_GLASGOW_HASKELL()`, a new default-included
      `include/ghcversion.h` is used for the new CPP definitions.
      Reviewed By: ekmett, austin, #ghc
      Differential Revision: https://phabricator.haskell.org/D66
  2. 19 Aug, 2014 1 commit
  3. 14 Aug, 2013 1 commit
  4. 17 Jun, 2013 1 commit
  5. 20 Apr, 2013 1 commit
  6. 01 Mar, 2013 2 commits
  7. 07 Oct, 2011 1 commit
    • dmp's avatar
      Add autoconf support to detect an LLVM-based C compiler · 6247b59e
      dmp authored
      This patch adds support to the autoconf scripts to detect
      when we are using a C compiler that uses an LLVM back end.
      An LLVM back end does not support all of the extensions use
      by GCC, so we need to perform some conditional compilation
      in the runtime, particularly for handling thread local
      storage and global register variables.
      The changes here will set the CC_LLVM_BACKEND in the
      autoconf scripts if we detect an llvm-based compiler. We use
      this variable to define the llvm_CC_FLAVOR variable that we
      can use in the runtime code to conditionally compile for
  8. 08 Apr, 2011 1 commit
  9. 13 Jan, 2011 1 commit
  10. 22 May, 2009 1 commit
    • Ian Lynagh's avatar
      Change how we find the host/build/target platforms · 82fbc4be
      Ian Lynagh authored
      Rather than using the autoconf built-in stuff and mangling it, we
      now just ask the bootstrapping compiler what platform we are on.
      When doing a port of GHC, you need to specify the platform you are
      porting to.
      The minimum version of GHC required is now 6.8.
  11. 26 Apr, 2009 1 commit