summaryrefslogtreecommitdiff
path: root/compiler/ghc.cabal.in
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2022-01-14 14:19:11 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-08-10 09:44:46 -0400
commitf95bbdcae3e6710a92dd8244321677eef91890de (patch)
tree214a46a6f0549baf14d2749bdd60124eb03c591e /compiler/ghc.cabal.in
parent823fe5b56450a7eefbf41ce8ece34095bf2217ee (diff)
downloadhaskell-f95bbdcae3e6710a92dd8244321677eef91890de.tar.gz
Add support for external static plugins (#20964)
This patch adds a new command-line flag: -fplugin-library=<file-path>;<unit-id>;<module>;<args> used like this: -fplugin-library=path/to/plugin.so;package-123;Plugin.Module;["Argument","List"] It allows a plugin to be loaded directly from a shared library. With this approach, GHC doesn't compile anything for the plugin and doesn't load any .hi file for the plugin and its dependencies. As such GHC doesn't need to support two environments (one for plugins, one for target code), which was the more ambitious approach tracked in #14335. Fix #20964 Co-authored-by: Josh Meredith <joshmeredith2008@gmail.com>
Diffstat (limited to 'compiler/ghc.cabal.in')
-rw-r--r--compiler/ghc.cabal.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in
index b5d1b8d571..48a5fa11ed 100644
--- a/compiler/ghc.cabal.in
+++ b/compiler/ghc.cabal.in
@@ -441,6 +441,7 @@ Library
GHC.Driver.Pipeline.Phases
GHC.Driver.Pipeline.Monad
GHC.Driver.Plugins
+ GHC.Driver.Plugins.External
GHC.Driver.Ppr
GHC.Driver.Session
GHC.Hs