-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C files are not rebuit when modified #38
Comments
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C files built through
build.rs
are not rebuilt when they are modified. The developer has to do something likecargo clean
and then build again. There's also no warning or message that the C files are newer and may need to be rebuilt. This all results in the developer potentially building / running with out of date code and can easily cause confusing issues.By default, Cargo doesn't know about files that are managed by
build.rs
so this makes sense. But it can be told about these files throughcargo:rerun-if-changed
. The files built throughfreertos-cargo-build
should automatically have this applied if possible (at leastshim.c
but ideally also theFreeRTOS-Kernel
source). There may be other files built by the user'sbuild.rs
through the innercc
, which should be left alone so the user can decide what to do.The text was updated successfully, but these errors were encountered: