Skip to content

Configure -Qunused-arguments instead of hardcoding it

Rodrigo Mesquita requested to merge wip/romes/configure-qunused-args into master

Split out of !9263 (merged)

When GHC invokes clang, it currently passes -Qunused-arguments to discard warnings resulting from GHC using multiple options that aren't used.

In this commit, we configure -Qunused-arguments into the Cc options instead of checking if the compiler is clang at runtime and hardcoding the flag into GHC.

This is part of the effort to centralise toolchain information in toolchain target files at configure time with the end goal of a runtime retargetable GHC.

Merge request reports