[Git][ghc/ghc][master] testsuite: Don't attempt to link when checking whether a way is supported
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Tue Jul 9 10:18:50 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
12bb9e7b by Matthew Pickering at 2024-07-09T06:18:12-04:00
testsuite: Don't attempt to link when checking whether a way is supported
It is sufficient to check that the simple test file compiles as it will
fail if there are not the relevant library files for the requested way.
If you break a way so badly that even a simple executable fails to link
(as I did for profiled dynamic way), it will just mean the tests for
that way are skipped on CI rather than displayed.
- - - - -
1 changed file:
- testsuite/config/ghc
Changes:
=====================================
testsuite/config/ghc
=====================================
@@ -236,7 +236,7 @@ def get_compiler_info():
if test_src is None:
test_src = '''
- module Main where
+ module A where
main = putStrLn "Hello World!"
'''
@@ -245,7 +245,7 @@ def get_compiler_info():
src.write_text(textwrap.dedent(test_src))
try:
p = subprocess.run(
- '{} -v0 {} -o test '.format(config.compiler, src) + ' '.join(flags),
+ '{} -v0 {} '.format(config.compiler, src) + ' '.join(flags),
shell=True,
cwd=d,
stderr=None if config.verbose >= 3 else subprocess.DEVNULL
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/12bb9e7b2aab1b4f9fe56d9b674fdc8a8e7cfb32
--
This project does not include diff previews in email notifications.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/12bb9e7b2aab1b4f9fe56d9b674fdc8a8e7cfb32
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/20240709/e18ac76f/attachment-0001.html>
More information about the ghc-commits
mailing list