[Git][ghc/ghc][master] ci: special case in req_host_target_ghc for JS

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Jun 14 11:02:21 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
f8395b94 by doyougnu at 2023-06-14T07:02:01-04:00
ci: special case in req_host_target_ghc for JS

- - - - -


1 changed file:

- testsuite/driver/testlib.py


Changes:

=====================================
testsuite/driver/testlib.py
=====================================
@@ -327,12 +327,13 @@ def req_process( name, opts ):
 
 def req_host_target_ghc( name, opts ):
     """
-    When testing a cross GHC, some test cases require a host GHC as
-    well (e.g. for compiling custom Setup.hs). This is not supported
-    yet (#23236), so for the time being we skip them when testing
-    cross GHCs.
+    When testing a cross GHC, some test cases require a host GHC as well (e.g.
+    for compiling custom Setup.hs). This is not supported yet (#23236), so for
+    the time being we skip them when testing cross GHCs. However, this is not
+    the case for the JS backend. The JS backend is a cross-compiler that
+    produces code that the host can run.
     """
-    if isCross():
+    if isCross() and not js_arch():
         opts.skip = True
 
 def ignore_stdout(name, opts):



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f8395b94ad23bbf50248e3acdcfdd393005dba1e
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/20230614/51722201/attachment-0001.html>


More information about the ghc-commits mailing list