Skip to content

Allow specifying dependencies in .compile. to make rebuild logic correct #24953

Open
@arnetheduck

Description

@arnetheduck

Summary

When compiling a c file, it might have dependencies (its #include files) which nim doesn't know about - when such dependencies are changed, the C file needs recompilation which currently does not happen.

Description

This could be resolved by adding a parameter to .compile("myfile.c", flags = "...", dependencies = [myfile1.h, ...]). - alternatively, a smarter version would discover such dependencies automatically (using gcc -MD and similar flags, parsing the output)

Alternatives

No response

Examples

No response

Backwards Compatibility

No response

Links

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions