diff --git a/Cabal/Distribution/Simple/GHC/Internal.hs b/Cabal/Distribution/Simple/GHC/Internal.hs index 5bb52dd1305..e52266401d2 100644 --- a/Cabal/Distribution/Simple/GHC/Internal.hs +++ b/Cabal/Distribution/Simple/GHC/Internal.hs @@ -242,9 +242,10 @@ componentCcGhcOptions :: Verbosity -> GhcImplInfo -> LocalBuildInfo -> BuildInfo -> ComponentLocalBuildInfo -> FilePath -> FilePath -> GhcOptions -componentCcGhcOptions verbosity _implInfo lbi bi clbi odir filename = +componentCcGhcOptions _verbosity _implInfo lbi bi clbi odir filename = mempty { - ghcOptVerbosity = toFlag verbosity, + -- Use --ghc-option=-v instead! + ghcOptVerbosity = NoFlag, ghcOptMode = toFlag GhcModeCompile, ghcOptInputFiles = toNubListR [filename], @@ -268,9 +269,10 @@ componentCcGhcOptions verbosity _implInfo lbi bi clbi odir filename = componentGhcOptions :: Verbosity -> LocalBuildInfo -> BuildInfo -> ComponentLocalBuildInfo -> FilePath -> GhcOptions -componentGhcOptions verbosity lbi bi clbi odir = +componentGhcOptions _verbosity lbi bi clbi odir = mempty { - ghcOptVerbosity = toFlag verbosity, + -- Use --ghc-option=-v instead! + ghcOptVerbosity = NoFlag, ghcOptHideAllPackages = toFlag True, ghcOptCabal = toFlag True, ghcOptThisUnitId = case clbi of diff --git a/cabal-install/Distribution/Client/SetupWrapper.hs b/cabal-install/Distribution/Client/SetupWrapper.hs index 9b76cb0e81b..9071cba525b 100644 --- a/cabal-install/Distribution/Client/SetupWrapper.hs +++ b/cabal-install/Distribution/Client/SetupWrapper.hs @@ -624,7 +624,8 @@ externalSetupMethod verbosity options pkg bt mkargs = do addRenaming (ipid, _) = (ipid, defaultRenaming) cppMacrosFile = setupDir "setup_macros.h" ghcOptions = mempty { - ghcOptVerbosity = Flag verbosity + -- Use --ghc-option=-v instead! + ghcOptVerbosity = NoFlag , ghcOptMode = Flag GhcModeMake , ghcOptInputFiles = toNubListR [setupHs] , ghcOptOutputFile = Flag setupProgFile