Commit Graph

9 Commits

Author SHA1 Message Date
Ben Siraphob
0f050a1236
treewide: replace http://github.com with https://github.com 2022-01-07 09:58:36 +07:00
John Ericson
96a0040313
Merge pull request #151689 from Gabriel439/gabriella/fix_ghcjs_config.sub
haskell.compiler.ghcjs: Don't use upstream `config.sub`
2021-12-22 12:02:13 -05:00
Gabriella Gonzalez
0796ca8425
haskell.compiler.ghcjs: Fix Linux build (#151699)
Before this change the GHCJS build fails on Linux with:

```
Setup: Missing dependency on a foreign library:
* Missing (or bad) header file: ghc/utils/unlit/fs.h
```

The root cause is that the `./ghc/configure.ac` script is
responsible for copying `./ghc/utils/fs/fs.h` to
`./ghc/utils/unlit/fs.h`, but the script exits early if a C
compiler is not present.

This fixes that by ensuring that the C compiler is present
on all platforms (not just Darwin), so that the build now
works on Linux, too.
2021-12-22 08:43:38 -08:00
Gabriella Gonzalez
69125bc160 haskell.compiler.ghcjs: Don't use upstream config.sub
Before this change the `ghcjs` build fails with:

```
checking host system type... Invalid configuration `js-ghcjs': machine `js-unknown' not recognized
configure: error: …/bin/bash …/configured-ghcjs-src/lib/boot/pkg/unix/config.sub js-ghcjs failed
```

This fails because the `updateAutotoolsGnuConfigScriptsHook` overrides the
`config.sub` in the `unix` boot package to use the newer upstream
version of `config.sub`, but the newer version is incompatible with the
`js-ghcjs` host string used to configure the `unix` package.  The
fix is to undo the override, because the `config.sub` vendored within
`ghc` supports the host string correctly.
2021-12-21 21:22:58 -08:00
sternenseemann
e8f9f6efb6 haskell.compiler.ghcjs: fix evaluation regression
The treewide change 8547db919a was done
incorrectly for ghcjs. This hasn't been noticed so far due to a lack of
CI.
2021-11-15 21:03:33 +01:00
Sandro Jäckel
8547db919a
treewide: switch `builtins.fromJSON(builtins.readFile ./file.json)` to lib.importJSON ./file.json 2021-11-03 14:43:52 +01:00
Divam Narula
d032f60c37
ghcjs: Enable on darwin (#139067) 2021-09-26 00:51:46 -04:00
(cdep)illabout
3389aab889
haskell.compiler.ghcjs: mark hydraPlatforms as none because output is too large 2021-09-19 09:32:17 +09:00
Divam
ba25b274f4 ghcjs: init at 8.10.7
The src points to the obsidiansystems repo as it has the ghcjs ported from
8.10.5 to 8.10.7, and a bunch of other fixes (#812, #811, #809)
2021-09-15 12:51:34 +09:00