haskell/cabal — pull request #1909 by TomMD (2014-05-30 21:23:25+00:00)
Title: Plumb --with-gcc= through to GHC for use on cbits/*

Previously, the c compiler selected by the user was only being used in
the early stages (preprocessing, perhaps another). It seems obvous that
a user specifying --with-gcc=clang would want C code, such as any values
from cbits/*, to be compiled using clang. We shoud likely plumb other
compiler options through as well, but doing so in a clean manner is
another issue.

Also, the option should be '--with-cc' someday.