Skip to content

Commit

Permalink
always recompile rust if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord committed Sep 8, 2024
1 parent e036de7 commit 6695235
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,11 @@ def recompile_rust():

def manage_rust_compilation():
if check_compilation_needed():
if prompt_user_for_recompilation():
if recompile_rust():
print("Rust extension successfully recompiled.")
else:
print("Failed to recompile Rust extension. Please compile manually.")
sys.exit(1)
if recompile_rust():
print("Rust extension successfully recompiled.")
else:
print("Compilation skipped. Note that the Rust extension might be outdated.")
print("Failed to recompile Rust extension. Please compile manually.")
sys.exit(1)
else:
print("Rust extension is up to date.")

Expand Down

0 comments on commit 6695235

Please sign in to comment.