summaryrefslogtreecommitdiff
path: root/config.sub
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2022-02-10 08:24:24 +0000
committerSylvain Henry <sylvain@haskus.fr>2022-11-29 09:44:31 +0100
commitcc25d52e0f65d54c052908c7d91d5946342ab88a (patch)
tree0f35764ee3b9b0451ac999b64d2db9fa074fa3dd /config.sub
parentdef47dd32491311289bff26230b664c895f178cc (diff)
downloadhaskell-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 'config.sub')
-rwxr-xr-xconfig.sub8
1 files changed, 6 insertions, 2 deletions
diff --git a/config.sub b/config.sub
index dba16e84c7..9977d334bd 100755
--- a/config.sub
+++ b/config.sub
@@ -1190,7 +1190,7 @@ case $cpu-$vendor in
| arc | arceb | arc32 | arc64 \
| arm | arm[lb]e | arme[lb] | armv* \
| avr | avr32 \
- | asmjs \
+ | asmjs | js \
| ba \
| be32 | be64 \
| bfin | bpf | bs2000 \
@@ -1711,7 +1711,11 @@ fi
# Now, validate our (potentially fixed-up) OS.
case $os in
- # Sometimes we do "kernel-libc", so those need to count as OSes.
+ # GHC specific: added for JS backend support
+ js | ghcjs)
+ ;;
+
+ # Sometimes we do "kernel-abi", so those need to count as OSes.
musl* | newlib* | relibc* | uclibc*)
;;
# Likewise for "kernel-abi"