Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Sylvain Henry's avatar
    f95bbdca
    Add support for external static plugins (#20964) · f95bbdca
    Sylvain Henry authored and Marge Bot's avatar Marge Bot committed
    
    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: default avatarJosh Meredith <joshmeredith2008@gmail.com>
    f95bbdca
    History
    Add support for external static plugins (#20964)
    Sylvain Henry authored and Marge Bot's avatar Marge Bot committed
    
    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: default avatarJosh Meredith <joshmeredith2008@gmail.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.