Commit f5a511f1 authored by Peter Trommler's avatar Peter Trommler 🥁 Committed by David Feuer
Browse files

Disable unboxed arrays on big-endian

Unboxed arrays are broken on big-endian architectures, see
ghc/ghc#16998 for details.
This patch makes the use of unboxed arrays conditional on
little-endian architecture.

Fixes #673
parent c3a4e788
......@@ -35,7 +35,13 @@
#ifdef __GLASGOW_HASKELL__
# define USE_ST_MONAD 1
#ifndef WORDS_BIGENDIAN
/*
* Unboxed arrays are broken on big-endian architectures.
* See https://gitlab.haskell.org/ghc/ghc/-/issues/16998
*/
# define USE_UNBOXED_ARRAYS 1
#endif
#endif
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment