diff options
author | Greg Steuck <greg@nest.cx> | 2021-12-18 14:51:02 -0800 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-12-21 01:47:17 -0500 |
commit | 9bc5ab64de16f786ede145755d52f5452af453f9 (patch) | |
tree | 80fcc14ef9eac30d236e19225e4b377ad32c69a7 /testsuite/mk | |
parent | 9728d6c2b62f38f79c8833b1819200985fe173dc (diff) | |
download | haskell-9bc5ab64de16f786ede145755d52f5452af453f9.tar.gz |
Use libc++ instead of libstdc++ on openbsd in addition to freebsd
This is not entirely accurate because some openbsd architectures use
gcc. Yet we don't have ghc ported to them and thus the approximation
is good enough.
Fixes ghcilink006 test
Diffstat (limited to 'testsuite/mk')
-rw-r--r-- | testsuite/mk/boilerplate.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/mk/boilerplate.mk b/testsuite/mk/boilerplate.mk index 942e6e32c2..2f5c23bc0c 100644 --- a/testsuite/mk/boilerplate.mk +++ b/testsuite/mk/boilerplate.mk @@ -295,8 +295,11 @@ DARWIN = YES else DARWIN = NO endif +# The platform is known to use libc++ as its main C++ library. ifeq "$(HostOS)" "freebsd" -FREEBSD = YES +LIBCXX_PLATFORM = YES +else ifeq "$(HostOS)" "openbsd" +LIBCXX_PLATFORM = YES else -FREEBSD = NO +LIBCXX_PLATFORM = NO endif |