hadrian: Pass cpp options to the CC builder in hadrian
Pass the cxxOptions
to the CC
builder. Afaict, we forgot to pass cxxOptions
to C++
sources, failing to compile in some cases.
This is relevant to compile ghc
with ghc-debug
support, which ships with C++
sources.
Further, we always pass ghcversion.h
to C/C++ sources, so they can use the MIN_VERSION_GLASGOW_HASKELL
macro. These two changes enable us to build ghc
with ghc-debug
support without having to change ghc-debug
at all.
Further, I think both these changes are generally correct, so can be applied to hadrian directly.