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

feat: rebuild circuits if circuits_dir changes #3

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Conversation

vivianjeng
Copy link
Contributor

@vivianjeng vivianjeng commented Jan 21, 2025

  • use println!("cargo:rerun-if-changed={}", circuits_dir.to_string()); to detect if circuits_dir changes and rerun
  • currently only gmp will not be rebuilt if it has been built
    • even if we find the output litwitnesscalc_{CIRCUIT_NAME}.a, we cannot know whether the cpp file is changed (!?)
    • so it just rebuilds all circuits when circuits_dir changes

@vivianjeng vivianjeng requested a review from alxkzmn January 21, 2025 13:42
@vivianjeng vivianjeng merged commit c64b4ee into main Jan 22, 2025
4 checks passed
@vivianjeng vivianjeng deleted the rebuild branch January 22, 2025 02:14
.arg(witnesscalc_build_target)
.current_dir(&witnesscalc_path)
.spawn()
.expect("Failed to spawn make arm64_host")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few old error messages here with hardcoded "arm64_host" that we can rewrite.

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.

2 participants