• thomie's avatar
    Build system: Add stage specific SRC_HC_(WARNING_)OPTS · 14d0f7f1
    thomie authored
    * Add stage specific versions of SRC_HC_OPTS. These are currently only
      used for -Werror. The previous combination of GhcStage2HcOpts and
      GhcLibHcOpts didn't apply to utils/*.
    * Add stage specific versions of SRC_HC_WARNING_OPTS. These will later be
      used for new warning supression flags that should not be passed to the
      bootstrap compiler.
    * Move -Wall (and -Werror) related code back to mk/warnings.mk, where it
      was before 987d5427. Now all warning related code is nicely together.
      Include mk/warnings.mk after mk/custom-settings.mk to make this work.
    Reviewed By: bgamari, hvr
    Differential Revision: https://phabricator.haskell.org/D1536
warnings.mk 5.72 KB