diff --git a/src/bin/sccache-dist/main.rs b/src/bin/sccache-dist/main.rs index 087e06451..9e3da5058 100644 --- a/src/bin/sccache-dist/main.rs +++ b/src/bin/sccache-dist/main.rs @@ -35,6 +35,14 @@ use cmdline::{AuthSubcommand, Command}; pub const INSECURE_DIST_SERVER_TOKEN: &str = "dangerously_insecure_server"; +#[cfg(not(any( + all(target_os = "linux", target_arch = "x86_64"), + target_os = "freebsd" +)))] +fn main() { + compile_error!("Distributed compilation is only support on Linux/x86_64 and FreeBSD!"); +} + // Only supported on x86_64 Linux machines and on FreeBSD #[cfg(any( all(target_os = "linux", target_arch = "x86_64"),