The new version of the path generator has the ability to return the set of flags active on the path when it was generated. Nothing actually uses these flags, but an obvious first candidate for usage is in the Cond_surround standard payload type, where we could:
Store the flags with the path in the payload;
Check the flags by adding them to the path filter when we consume the path;
Only add dependencies if we are in a path that isn't in dead code.
It'd be nice to extend this to other standard payloads too, but the conditional surround one is a good starter.
The new version of the path generator has the ability to return the set of flags active on the path when it was generated. Nothing actually uses these flags, but an obvious first candidate for usage is in the
Cond_surround
standard payload type, where we could:It'd be nice to extend this to other standard payloads too, but the conditional surround one is a good starter.