[Git][ghc/ghc][wip/T22740] JS: replace "js" architecture with "javascript"

Sylvain Henry (@hsyl20) gitlab at gitlab.haskell.org
Mon Feb 6 08:33:21 UTC 2023



Sylvain Henry pushed to branch wip/T22740 at Glasgow Haskell Compiler / GHC


Commits:
93257480 by Sylvain Henry at 2023-02-06T09:36:57+01:00
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 <ben at smart-cactus.org>

- - - - -


30 changed files:

- .gitlab/gen_ci.hs
- .gitlab/jobs.yaml
- compiler/GHC.hs
- config.sub
- configure.ac
- hadrian/bindist/config.mk.in
- hadrian/src/Oracles/Flag.hs
- hadrian/src/Oracles/Setting.hs
- libraries/base/Control/Concurrent.hs
- libraries/base/GHC/Conc/IO.hs
- libraries/base/GHC/Conc/Windows.hs
- libraries/base/GHC/Event.hs
- libraries/base/GHC/Event/Thread.hs
- libraries/base/GHC/Event/TimerManager.hs
- libraries/base/GHC/IO/Encoding.hs
- libraries/base/GHC/IO/Encoding/CodePage/API.hs
- libraries/base/GHC/IO/FD.hs
- libraries/base/GHC/JS/Prim.hs
- libraries/base/GHC/JS/Prim/Internal/Build.hs
- libraries/base/GHC/Stack/CCS.hsc
- libraries/base/GHC/TopHandler.hs
- libraries/base/GHC/Windows.hs
- libraries/base/System/CPUTime.hsc
- libraries/base/System/Environment.hs
- libraries/base/System/Environment/ExecutablePath.hsc
- libraries/base/System/Posix/Internals.hs
- libraries/base/System/Timeout.hs
- libraries/base/base.cabal
- libraries/ghc-boot/GHC/Platform/ArchOS.hs
- libraries/ghci/GHCi/CreateBCO.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9325748067966f6e08adbb182f2c04d9e86f7ad8

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9325748067966f6e08adbb182f2c04d9e86f7ad8
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230206/690311c0/attachment.html>


More information about the ghc-commits mailing list