Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
6136 commits behind the upstream repository.
Luite Stegeman's avatar
Luite Stegeman authored
The JavaScript code in libraries/base/jsbits/base.js had some
hardcoded offsets for fields in structs, because we expected
the layout of the data structures to remain unchanged. Emsdk
3.1.42 changed the layout of the stat struct, breaking this
assumption, and causing code in .hsc files accessing the
stat struct to fail.

This patch improves compatibility with recent emsdk by
removing the assumption that data layouts stay unchanged:

    1. offsets of fields in structs used by JavaScript code are
       now computed by the configure script, so both the .js and
       .hsc files will automatically use the new layout if anything
       changes.
    2. the distrib/configure script checks that the emsdk version
       on a user's system is the same version that a bindist was
       booted with, to avoid data layout inconsistencies

See #23641
aa07402e
History
The Glasgow Haskell Compiler
============================

This is a binary distribution of GHC, a compiler and interactive
environment for the Haskell functional programming language.

For more information, visit GHC's web site:

  https://www.haskell.org/ghc/

Information for developers of GHC can be found here:

  https://gitlab.haskell.org/ghc/ghc/-/wikis/home


For installation instructions, see the accompanying INSTALL file.


Binaries, links and scripts, for runghc/runhaskell may vary across platforms.