summaryrefslogtreecommitdiff
path: root/testsuite/driver
diff options
context:
space:
mode:
authorBen Gamari <ben@well-typed.com>2022-03-21 15:28:29 -0400
committerBen Gamari <ben@smart-cactus.org>2022-04-06 15:18:26 -0400
commit9934ad54dcdc00a3a236fc8cb09b1a76e7aea81e (patch)
tree47510e5de6722caed583f4511c0bda385ca0365b /testsuite/driver
parent402c36ba403c26a3e3738405c5ad76c13d8c3ad2 (diff)
downloadhaskell-9934ad54dcdc00a3a236fc8cb09b1a76e7aea81e.tar.gz
testsuite: Clean up tests depending on C++ std lib
Diffstat (limited to 'testsuite/driver')
-rw-r--r--testsuite/driver/runtests.py2
-rw-r--r--testsuite/driver/testglobals.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py
index d2e25eaa19..0d458924d0 100644
--- a/testsuite/driver/runtests.py
+++ b/testsuite/driver/runtests.py
@@ -232,6 +232,8 @@ else:
print('WARNING: No UTF8 locale found.')
print('You may get some spurious test failures.')
+ghc_env['LIBCXX'] = config.stdcxx_impl
+
# https://stackoverflow.com/a/22254892/1308058
def supports_colors():
"""
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py
index 6847cece68..b85a14e17a 100644
--- a/testsuite/driver/testglobals.py
+++ b/testsuite/driver/testglobals.py
@@ -217,6 +217,8 @@ class TestConfig:
# The path specifies the file in which to write the dependencies
self.only_report_hadrian_deps = None # type: Optional[Path]
+ # C++ standard library implementation
+ self.stdcxx_impl = 'stdc++' # or c++ for LLVM/libc++ based platforms
def validate(self) -> None:
""" Check the TestConfig for self-consistency """