From 6636b670233522f01d002c9b97827d00289dbf5c Mon Sep 17 00:00:00 2001 From: Sylvain Henry Date: Thu, 2 Feb 2023 16:01:56 +0100 Subject: JS: replace "js" architecture with "javascript" Despite Cabal supporting any architecture name, `cabal --check` only supports a few built-in ones. Sadly `cabal --check` is used by Hackage hence using any non built-in name in a package (e.g. `arch(js)`) is rejected and the package is prevented from being uploaded on Hackage. Luckily built-in support for the `javascript` architecture was added for GHCJS a while ago. In order to allow newer `base` to be uploaded on Hackage we make the switch from `js` to `javascript` architecture. Fixes #22740. Co-authored-by: Ben Gamari --- config.sub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.sub') diff --git a/config.sub b/config.sub index 9977d334bd..efb0320b99 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 | js \ + | asmjs | javascript \ | ba \ | be32 | be64 \ | bfin | bpf | bs2000 \ -- cgit v1.2.1