hadrian: Ensure that way-flags are passed to CC
Previously the way-specific compilation flags (e.g. -DDEBUG
,
-DTHREADED_RTS
) would not be passed to the CC invocations. This meant
that C dependency files would not correctly reflect
dependencies predicated on the way, resulting in the rather
painful #23554 (closed).
Closes #23554 (closed).