Skip to content

Commit

Permalink
Merge pull request #10 from powdr-labs/non-x86-64-error
Browse files Browse the repository at this point in the history
Meaningful error message on trying to build for non x86-64.
  • Loading branch information
leonardoalt committed May 3, 2024
2 parents f0c7800 + 769b115 commit 7c64146
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ use std::{
process::Command,
};

#[cfg(not(target_arch = "x86_64"))]
compile_error!("This crate is only available on x86-64 architectures.");

fn recursive_hardlink(from: &Path, to: &Path) {
let mut stack = vec![from.to_path_buf()];
while let Some(curr_from) = stack.pop() {
Expand Down

0 comments on commit 7c64146

Please sign in to comment.