Skip to content
Snippets Groups Projects

Export `CXX` explicitly

Merged Rebecca Turner requested to merge rebeccat/ghc.nix:fix-old-configure-macos into main
All threads resolved!
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -262,6 +262,9 @@ hspkgs.shellFor rec {
shellHook = ''
# somehow, CC gets overridden so we set it again here.
export CC=${stdenv.cc}/bin/cc
# This prevents `./configure` from detecting the system `g++` on macOS,
# fixing builds on some older GHC versions (like `ghc-9.7-start`):
export CXX=${stdenv.cc}/bin/c++
export GHC=$NIX_GHC
export GHCPKG=$NIX_GHCPKG
export HAPPY=${happy}/bin/happy
Loading