Skip to content
Snippets Groups Projects
Commit af929f09 authored by Matthew Pickering's avatar Matthew Pickering Committed by Mikolaj Konarski
Browse files

Pass CXX and CXXFLAGS argument to ./configure scripts for build-type: Configure

Since the compiler since ghc-9.4.8 requires a C++ toolchain, and that is
configured into the compiler --info, it makes sense to pass that
information onto the ./configure script.

The assumption that the C++ compiler is part of the toolchain is only
since ghc-9.4. Therefore, if no C++ compiler is found, then the options
won't be passed to the configure script.

For compilers older than 9.4, the C++ compiler will always be found as
it is configured into the settings file.

See ghc/ghc#25767 (comment 610831) for
some discussion about how this would be useful to implement
system-cxx-std-lib in userspace.

Fixes #10797
parent db7af8ab
No related branches found
No related tags found
Loading
Showing
with 160 additions and 8 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment