Skip to content

Commit

Permalink
Merge pull request #804 from angerman/patch-1
Browse files Browse the repository at this point in the history
HAVE_INTERNAL_INTERPRETER fixes
  • Loading branch information
hamishmack authored Jun 4, 2021
2 parents 36b0286 + 820dfcd commit ecb5954
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ghcjs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Library
CPP-Options: -DDEBUG

if flag(ghci)
CPP-Options: -DGHCI
CPP-Options: -DHAVE_INTERNAL_INTERPRETER
-- Include-Dirs: ../rts/dist/build

Other-Extensions:
Expand Down Expand Up @@ -1145,4 +1145,3 @@ Flag terminfo
Description: Build GHC with terminfo support on non-Windows platforms.
Default: True
Manual: True

2 changes: 1 addition & 1 deletion lib/ghc/ghc.cabal.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Library
GHC-Options: -Wall -fno-warn-name-shadowing

if flag(ghci)
CPP-Options: -DGHCI
CPP-Options: -DHAVE_INTERNAL_INTERPRETER
-- Include-Dirs: ../rts/dist/build

Other-Extensions:
Expand Down
1 change: 1 addition & 0 deletions src/Compiler/Program.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE CPP, NondecreasingIndentation, TupleSections, LambdaCase #-}
-- GHC frontend ( ghc/Main.hs ) adapted for GHCJS
#undef GHCI
#undef HAVE_INTERNAL_INTERPRETER

{-# OPTIONS -fno-warn-incomplete-patterns -optc-DNON_POSIX_SOURCE #-}

Expand Down
2 changes: 1 addition & 1 deletion utils/pkg-input/ghci-ghcjs/ghci-ghcjs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ library
UnboxedTuples

if flag(ghci)
CPP-Options: -DGHCI
CPP-Options: -DHAVE_INTERNAL_INTERPRETER
exposed-modules:
GHCi.Run
GHCi.CreateBCO
Expand Down

0 comments on commit ecb5954

Please sign in to comment.