From 769b1153f3ae2d7cbab4c8acf33865ed13f8a823 Mon Sep 17 00:00:00 2001 From: Lucas Clemente Vella Date: Thu, 2 May 2024 19:32:52 +0100 Subject: [PATCH] Meaningful error message on trying to build for non x86-64. --- build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.rs b/build.rs index 321acbc..f04ec17 100644 --- a/build.rs +++ b/build.rs @@ -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() {