Skip to content
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

Don't recompile dpe every single time #391

Merged
merged 2 commits into from
Feb 3, 2025
Merged

Conversation

swenson
Copy link
Contributor

@swenson swenson commented Feb 3, 2025

The build script always writes to arbitrary_max_handles.rs, which means that a recompile is always required.

This then triggers a rebuild of any project (i.e., Caliptra) that uses this.

This fixes it so that we only write the file if the contents need to be changed, so the build can be cached.

@clundin25
Copy link
Contributor

Thanks! Looks like there is a clippy complaint

clundin25
clundin25 previously approved these changes Feb 3, 2025
The build script always writes to `arbitrary_max_handles.rs`, which
means that a recompile is always required.

This then triggers a rebuild of any project (i.e., Caliptra) that uses
this.

This fixes is so that we only write the file if the contents need to be
changed, so the build can be cached.

Clippy fix
@swenson swenson force-pushed the dont-recompile-every-time branch from 73fbceb to 3efa5ec Compare February 3, 2025 17:46
@swenson
Copy link
Contributor Author

swenson commented Feb 3, 2025

Thanks!

@swenson
Copy link
Contributor Author

swenson commented Feb 3, 2025

Could one of you merge? I do not appear to have permission.

@jhand2 jhand2 merged commit 872cb3c into main Feb 3, 2025
2 checks passed
@swenson swenson deleted the dont-recompile-every-time branch February 3, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants