fix-build-using-unregisterized-v8.2
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Thu, 28 Feb 2019 14:18:49 +0000 (14:18 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 28 Feb 2019 14:18:49 +0000 (14:18 +0000)
commita42ee9066b3934d5af22c5bd23e113bc0b97aa46
tree08733503e05ca8e09081f4e9a37619db611d5d5b
parent13c56eb8647f523fb2fff07d5d29fa7f5c137e5a
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