[Git][ghc/ghc][master] JS: fake support for native adjustors (#25159)
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Mon Sep 9 18:58:36 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
03055c71 by Sylvain Henry at 2024-09-09T14:58:15-04:00
JS: fake support for native adjustors (#25159)
The JS backend doesn't support adjustors (I believe) and in any case if
it ever supports them it will be a native support, not one via libffi.
- - - - -
2 changed files:
- m4/ghc_adjustors_method.m4
- utils/ghc-toolchain/exe/Main.hs
Changes:
=====================================
m4/ghc_adjustors_method.m4
=====================================
@@ -4,7 +4,7 @@ dnl Use libffi for adjustors?
AC_DEFUN([GHC_ADJUSTORS_METHOD],
[
case [$]{$1[Arch]} in
- i386|x86_64)
+ i386|x86_64|javascript)
# We have native adjustor support on these platforms
HaveNativeAdjustor=yes
;;
=====================================
utils/ghc-toolchain/exe/Main.hs
=====================================
@@ -374,6 +374,7 @@ archHasNativeAdjustors :: Arch -> Bool
archHasNativeAdjustors = \case
ArchX86 -> True
ArchX86_64 -> True
+ ArchJavaScript -> True
_ -> False
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/03055c71446c8f1265de3a6ccb5bc9e09827821e
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/03055c71446c8f1265de3a6ccb5bc9e09827821e
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/20240909/d5321de8/attachment-0001.html>
More information about the ghc-commits
mailing list