diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2022-02-10 08:24:24 +0000 |
---|---|---|
committer | Sylvain Henry <sylvain@haskus.fr> | 2022-11-29 09:44:31 +0100 |
commit | cc25d52e0f65d54c052908c7d91d5946342ab88a (patch) | |
tree | 0f35764ee3b9b0451ac999b64d2db9fa074fa3dd /libraries/ghc-heap | |
parent | def47dd32491311289bff26230b664c895f178cc (diff) | |
download | haskell-cc25d52e0f65d54c052908c7d91d5946342ab88a.tar.gz |
Add Javascript backend
Add JS backend adapted from the GHCJS project by Luite Stegeman.
Some features haven't been ported or implemented yet. Tests for these
features have been disabled with an associated gitlab ticket.
Bump array submodule
Work funded by IOG.
Co-authored-by: Jeffrey Young <jeffrey.young@iohk.io>
Co-authored-by: Luite Stegeman <stegeman@gmail.com>
Co-authored-by: Josh Meredith <joshmeredith2008@gmail.com>
Diffstat (limited to 'libraries/ghc-heap')
-rw-r--r-- | libraries/ghc-heap/ghc-heap.cabal.in | 3 | ||||
-rw-r--r-- | libraries/ghc-heap/tests/all.T | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libraries/ghc-heap/ghc-heap.cabal.in b/libraries/ghc-heap/ghc-heap.cabal.in index d1db0e250c..1842995885 100644 --- a/libraries/ghc-heap/ghc-heap.cabal.in +++ b/libraries/ghc-heap/ghc-heap.cabal.in @@ -28,7 +28,8 @@ library , containers >= 0.6.2.1 && < 0.7 ghc-options: -Wall - cmm-sources: cbits/HeapPrim.cmm + if !os(ghcjs) + cmm-sources: cbits/HeapPrim.cmm default-extensions: NoImplicitPrelude diff --git a/libraries/ghc-heap/tests/all.T b/libraries/ghc-heap/tests/all.T index 504eb58857..bce11d6278 100644 --- a/libraries/ghc-heap/tests/all.T +++ b/libraries/ghc-heap/tests/all.T @@ -1,3 +1,5 @@ +setTestOpts(js_skip) # ghc-heap not supported by the JS backend + test('heap_all', [when(have_profiling(), extra_ways(['prof'])), # These ways produce slightly different heap representations. |