diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2023-02-02 16:01:56 +0100 |
---|---|---|
committer | Sylvain Henry <sylvain@haskus.fr> | 2023-02-06 09:36:57 +0100 |
commit | 9325748067966f6e08adbb182f2c04d9e86f7ad8 (patch) | |
tree | 4f46dc7807e8e3800f186f864e25519eae31a3a9 /libraries/base/System/Environment/ExecutablePath.hsc | |
parent | 3c0f0c6d99486502c72e6514a40e7264baaa6afc (diff) | |
download | haskell-9325748067966f6e08adbb182f2c04d9e86f7ad8.tar.gz |
JS: replace "js" architecture with "javascript"wip/T22740
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@smart-cactus.org>
Diffstat (limited to 'libraries/base/System/Environment/ExecutablePath.hsc')
-rw-r--r-- | libraries/base/System/Environment/ExecutablePath.hsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/System/Environment/ExecutablePath.hsc b/libraries/base/System/Environment/ExecutablePath.hsc index ede63d5e6d..cb9fad7a7e 100644 --- a/libraries/base/System/Environment/ExecutablePath.hsc +++ b/libraries/base/System/Environment/ExecutablePath.hsc @@ -18,12 +18,12 @@ module System.Environment.ExecutablePath ( getExecutablePath -##if !defined(js_HOST_ARCH) +##if !defined(javascript_HOST_ARCH) , executablePath ##endif ) where -##if defined(js_HOST_ARCH) +##if defined(javascript_HOST_ARCH) getExecutablePath :: IO FilePath getExecutablePath = return "a.jsexe" |