From d9d6e95a85f032299f543a10b40dbbcc0fa03768 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Tue, 11 Jul 2023 01:44:53 +0300 Subject: [PATCH] C-preprocessing-generator: fix missing relevant features --- src/tools/generators/c-preprocessing-generator.jam | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/generators/c-preprocessing-generator.jam b/src/tools/generators/c-preprocessing-generator.jam index fcf5bedf30..775f515935 100644 --- a/src/tools/generators/c-preprocessing-generator.jam +++ b/src/tools/generators/c-preprocessing-generator.jam @@ -39,6 +39,10 @@ class C-preprocessing-generator : generator { return ; } + # generator.construct-result adds relevant features for self.rule-name + # which is not the action rule that would be used... + local relevant = [ $(preprocessor[1]).get ] ; + property-set = [ $(property-set).add-raw $(relevant) ] ; # Clone preprocessor action with our source and target local preproc-action = [ $(preprocessor[2]).action ] ; local action-class = [ modules.peek $(preproc-action) : __class__ ] ;