Fixes #17612 (closed) by adding a cabal.configure.opts key for hadrian.settings.
cabal.configure.opts
hadrian.settings