summaryrefslogtreecommitdiff
path: root/compiler/main/DynFlags.hs
diff options
context:
space:
mode:
authorKari Pahula <kaol@iki.fi>2019-09-20 10:11:53 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-09-23 17:54:42 -0400
commit238b58e436a24fcb76846f24b37c90b873ef2bef (patch)
treec883f0952fa176f1b8355e2ce20b7788b30b5de7 /compiler/main/DynFlags.hs
parentd0c2f3a2b6ec2d3ee2b9f017eb52c72cf6187d6f (diff)
downloadhaskell-238b58e436a24fcb76846f24b37c90b873ef2bef.tar.gz
Add -fkeep-going to make compiler continue despite errors (#15424)
Add a new optional failure handling for upsweep which continues the compilation on other modules if any of them has errors.
Diffstat (limited to 'compiler/main/DynFlags.hs')
-rw-r--r--compiler/main/DynFlags.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index c2d0322cd9..5bd8cb819f 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -653,6 +653,7 @@ data GeneralFlag
-- response file and as such breaking apart.
| Opt_SingleLibFolder
| Opt_KeepCAFs
+ | Opt_KeepGoing
-- output style opts
| Opt_ErrorSpans -- Include full span info in error messages,
@@ -4206,6 +4207,7 @@ fFlagsDeps = [
flagSpec "ignore-interface-pragmas" Opt_IgnoreInterfacePragmas,
flagGhciSpec "implicit-import-qualified" Opt_ImplicitImportQualified,
flagSpec "irrefutable-tuples" Opt_IrrefutableTuples,
+ flagSpec "keep-going" Opt_KeepGoing,
flagSpec "kill-absence" Opt_KillAbsence,
flagSpec "kill-one-shot" Opt_KillOneShot,
flagSpec "late-dmd-anal" Opt_LateDmdAnal,