summaryrefslogtreecommitdiff
path: root/lang/ghc88/patches/patch-compiler_main_DynFlags.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ghc88/patches/patch-compiler_main_DynFlags.hs')
-rw-r--r--lang/ghc88/patches/patch-compiler_main_DynFlags.hs17
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/ghc88/patches/patch-compiler_main_DynFlags.hs b/lang/ghc88/patches/patch-compiler_main_DynFlags.hs
new file mode 100644
index 00000000000..eee854b12b0
--- /dev/null
+++ b/lang/ghc88/patches/patch-compiler_main_DynFlags.hs
@@ -0,0 +1,17 @@
+$NetBSD: patch-compiler_main_DynFlags.hs,v 1.1 2020/01/09 12:32:24 pho Exp $
+
+Fix building bootkits: the stage being >= 2 doesn't imply that GHCI is
+enabled. This is a logic error. We build our bootkits with GHCI
+disabled.
+
+--- compiler/main/DynFlags.hs.orig 2020-01-08 12:22:53.874596542 +0000
++++ compiler/main/DynFlags.hs
+@@ -250,7 +250,7 @@ import qualified EnumSet
+ import GHC.Foreign (withCString, peekCString)
+ import qualified GHC.LanguageExtensions as LangExt
+
+-#if defined(GHCI)
++#if STAGE >= 2
+ import Foreign (Ptr) -- needed for 2nd stage
+ #endif
+