boostorg / boostorg/build

Support for compiler plugins in toolsets

Open
#149 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
251
Forks
63
PR merge metrics
No merged PRs in 30d

Description

Compiler plugins are getting in fashion, so it will be nice to have a support for them in boost-build.

Assuming gcc toolset (clang is similar):

1. Compiler plugin is a variety of shared library which is build with some options derived by running the target compiler (e.g. "gcc -print-file-name=plugin" to set the proper include path).

2. As a dependency, compiler plugin is to be applied to the for each affected source ("-fplugin=/plugin.so").

3. An extra feature will be useful to set plugin specific flags on affected sources ("-fplugin-arg-plugin-foo=bar"). A bit of complication is caused by the fact that any "-fplugin" flags must precede "-fplugin-arg-*" flags on the gcc command line.

I have tried to work out a module of my own - p1 and p3 are pretty easy, but I could not get the p2 right (the whole generators/v-targets thing is pretty confusing),

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.