Hadrian: replicate the logic from mk/ways.mk
Before this patch, Hadrian was only partially reproducing what the Make build
system does in mk/ways.mk
, where it defines a mapping between build ways
and GHC command line options. For instance, the profiled way would only
imply the -prof command line argument, while in Make it also implies
-static
and -eventlog
. This means that even though a profiled program can emit
eventlogs, even when it wasn't built with -eventlog
, this wasn't actually
the case when using Hadrian. This patch completely reproduces the logic
from mk/ways.mk
in Hadrian to prevent any such problem.
cc @mpickering