diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-02-09 13:02:13 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-02-14 03:35:44 -0500 |
commit | 72f230837ef166d4c931621b484471090d5338f6 (patch) | |
tree | 51547e796a7f2fbdeba346da32393bd2e2003070 /utils | |
parent | ee77148ede2c51d99cad75da9d4097c892f8017d (diff) | |
download | haskell-72f230837ef166d4c931621b484471090d5338f6.tar.gz |
ghc-in-ghci: Drop it
isovector recently noticed that it is broken and regardless it is
superceded by `hadrian/ghci`.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ghc-in-ghci/inner.ghci | 1 | ||||
-rw-r--r-- | utils/ghc-in-ghci/load-main.ghci | 1 | ||||
-rwxr-xr-x | utils/ghc-in-ghci/run.sh | 44 | ||||
-rw-r--r-- | utils/ghc-in-ghci/settings.ghci | 64 |
4 files changed, 0 insertions, 110 deletions
diff --git a/utils/ghc-in-ghci/inner.ghci b/utils/ghc-in-ghci/inner.ghci deleted file mode 100644 index 72834c96b5..0000000000 --- a/utils/ghc-in-ghci/inner.ghci +++ /dev/null @@ -1 +0,0 @@ -:set prompt "%s [inner]> " diff --git a/utils/ghc-in-ghci/load-main.ghci b/utils/ghc-in-ghci/load-main.ghci deleted file mode 100644 index a79855744e..0000000000 --- a/utils/ghc-in-ghci/load-main.ghci +++ /dev/null @@ -1 +0,0 @@ -:load Main diff --git a/utils/ghc-in-ghci/run.sh b/utils/ghc-in-ghci/run.sh deleted file mode 100755 index cb0ab0777d..0000000000 --- a/utils/ghc-in-ghci/run.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -xe - -# Runs ghc-stage2 with GHCi settings that allow GHC to be loaded and run in the -# interpreter. Options provided on the command-line will be passed directly to -# the GHCi invocation. - -# Note that this script is intended to be run from the root of the GHC repo, -# like this: - -# ./utils/ghc-in-ghci/run.sh - -# This is substantially faster than doing an actual compile, and so can aid in -# tighter development iterations. It can be made even faster by specifying "-jN" -# for parallelism. Typically choosing an N value close to the number of logical -# CPU cores you have leads to faster loads. Here's how to specify -j: - -# ./utils/ghc-in-ghci/run.sh -j4 - -# The script will also run `:load Main`, to load GHC's main module. After that, -# running `main` will run an inner GHCi, because there is a default `:set args -# --interactive ...`. To override this, use `:set args ...` or `:main ...`. - -# If you don't want to wait for `:load Main`, since you want to load some other -# module, then you can use `Ctrl+C` to cancel the initial load. - -# Look in two common locations for a GHC installation (the results of using -# the make- and Hadrian-based build systems, respectively). -if [ -d ./inplace/lib ]; then - GHC_BIN=./inplace/bin/ghc-stage2 - _GHC_TOP_DIR=./inplace/lib -elif [ -d ./_build/stage1/lib ]; then - GHC_BIN=./_build/stage1/bin/ghc - _GHC_TOP_DIR=./_build/stage1/lib -else - echo "Could not find GHC installation" - exit 1 -fi - -exec ${GHC_BIN} \ - --interactive \ - -ghci-script ./utils/ghc-in-ghci/settings.ghci \ - -ghci-script ./utils/ghc-in-ghci/load-main.ghci \ - +RTS -A128m -RTS \ - "$@" diff --git a/utils/ghc-in-ghci/settings.ghci b/utils/ghc-in-ghci/settings.ghci deleted file mode 100644 index eed64a9107..0000000000 --- a/utils/ghc-in-ghci/settings.ghci +++ /dev/null @@ -1,64 +0,0 @@ -:set -icompiler/backpack -:set -icompiler/basicTypes -:set -icompiler/cmm -:set -icompiler/codeGen -:set -icompiler/coreSyn -:set -icompiler/deSugar -:set -icompiler/ghci -:set -icompiler/hieFile -:set -icompiler/hsSyn -:set -icompiler/iface -:set -icompiler/llvmGen -:set -icompiler/main -:set -icompiler/nativeGen -:set -icompiler/parser -:set -icompiler/prelude -:set -icompiler/profiling -:set -icompiler/rename -:set -icompiler/simplCore -:set -icompiler/simplStg -:set -icompiler/specialise -:set -icompiler/stgSyn -:set -icompiler/stranal -:set -icompiler/typecheck -:set -icompiler/types -:set -icompiler/utils -:set -icompiler/vectorise -:set -ighc -:set -Icompiler -:set -Iincludes -:set -Iincludes/dist-derivedconstants/header -:set -package=ghc-boot-th -:set -DGHC_STAGE=2 -:set -DHAVE_INTERNAL_INTERPRETER -:set -DGHC_LOADED_INTO_GHCI -:set -XNoImplicitPrelude - --- make it work for Make stage2 -:set -Icompiler/stage2 -:set -Icompiler/stage2/build -:set -icompiler/stage2/build - --- make it work for Make stage1 -:set -Icompiler/stage1 -:set -Icompiler/stage1/build -:set -icompiler/stage1/build - --- make it work for Hadrian stage2 -:set -I_build/generated -:set -I_build/stage2/compiler/build -:set -i_build/stage2/compiler/build - --- make it work for Hadrian stage1 -:set -I_build/stage1/compiler/build -:set -i_build/stage1/compiler/build - --- -fobject-code is required because bytecode doesn't support unboxed tuples --- https://gitlab.haskell.org/ghc/ghc/issues/1257 -:set -odir ./.ghci-objects -:set -hidir ./.ghci-objects -:set -fobject-code - --- Setup args so that running "main" will run ghci and set the prompt to --- indicate that it is an inner ghci. -:set args --interactive -ghci-script utils/ghc-in-ghci/inner.ghci |