fix-build-using-unregisterized-v8.2
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)
committerIlias Tsitsimpis <iliastsi@debian.org>
Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)
commit99337b2a134ce5d992a350b7e4ed4997617d22f7
tree28a1660f842da245e8d014f664ce07abc8ecd02b
parente4a8abf09697d21836ca0d6ddf13add717f403bf
fix-build-using-unregisterized-v8.2

.
  error: conflicting types for 'ghc_GhcPrelude_zdtrModule4_bytes'
  note: in definition of macro 'EB_'
  #define EB_(X)    extern const char X[]
  note: previous definition of 'ghc_GhcPrelude_zdtrModule4_bytes' was here
  char ghc_GhcPrelude_zdtrModule4_bytes[] = "ghc";
.
 For more information about the problem, see https://phabricator.haskell.org/D4114.
.
 This patch is a rework of https://phabricator.haskell.org/D3741.
 It modifies Stg.h to include the old definitions, if a compiler older than
 8.4 is being used.
.
 This patch can be removed, once ghc-8.2 is no longer the bootstrap compiler.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://ghc.haskell.org/trac/ghc/ticket/15201

Gbp-Pq: Name fix-build-using-unregisterized-v8.2
includes/Stg.h