Skip to content

Rebuild if changed #765

Open
Open
@orenbenkiki

Description

When using the cc crate...

what is the proper way to set up build.rs and/or Cargo.toml so that cargo will automatically recompile and relink the C/C++ files if they are changed since the last compilation? Maybe even list the local header files so changing them will trigger recompilation/relink as well?

Alternatively, what is the proper way to force cargo to recompile all the C/C++ files?

Right now I can always remove the target/{debug,release} directories to force recompilation but it seems like a hack.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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