Skip to content

source pre-processing prior to determining dependencies #469

Open
@p-costa

Description

@p-costa

Hi all,

As far as I understand, pre-processor support by fpm is still under discussion (#78, #308, #425).

I have a use case where I build my source code together with modules from an external library. Some of these modules are not present in my src directory because they not needed -- the underlying dependencies within this library are masked by (cpp) pre-processing.

So, in short, I wanted to ask if you consider supporting pre-processing specific source files (similar to this #425 (comment)), prior to generating dependencies?

E.g.:

module mod_a
#ifdef _B
use mod_b, only: b
#endif
(...)

with the dependency of mod_b in mod_a not determined if mod_a is not compiled with -cpp -D_B?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions