Skip to content

Commit

Permalink
feat: optional build flag for sequencer build script
Browse files Browse the repository at this point in the history
Signed-off-by: Jawad Tariq <[email protected]>
  • Loading branch information
JDawg287 committed Mar 14, 2024
1 parent 3874adc commit b0ff4b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/topos-sequencer-subnet-client/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ use std::process::{exit, Command};
const CONTRACTS_PATH: &str = "../../contracts";

fn main() {
if std::env::var("SKIP_CONTRACT_BUILD").unwrap_or_default() == "true" {
return;
}

if !CONTRACTS_PATH.is_empty() {
std::env::set_current_dir(CONTRACTS_PATH).unwrap_or_else(|err| {
eprintln!("Error changing to subdirectory: {}", err);
Expand Down

0 comments on commit b0ff4b0

Please sign in to comment.