From 4cb0073909b4741debf39ba6b04db4197479e2f7 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 10 May 2024 16:32:01 -0700 Subject: [PATCH] stop non-x64 builds with less cryptic errors --- src/base/base_context_cracking.h | 10 ++++++++++ .../metagen_base/metagen_base_context_cracking.h | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/base/base_context_cracking.h b/src/base/base_context_cracking.h index f9f1a782..9df1dc5e 100644 --- a/src/base/base_context_cracking.h +++ b/src/base/base_context_cracking.h @@ -234,4 +234,14 @@ # define LANG_C 0 #endif +//////////////////////////////// +//~ rjf: Unsupported Errors + +#if ARCH_X86 +# error You tried to build in x86 (32 bit) mode, but currently, only building in x64 (64 bit) mode is supported. +#endif +#if !ARCH_X64 +# error You tried to build with an unsupported architecture. Currently, only building in x64 mode is supported. +#endif + #endif // BASE_CONTEXT_CRACKING_H diff --git a/src/metagen/metagen_base/metagen_base_context_cracking.h b/src/metagen/metagen_base/metagen_base_context_cracking.h index 65f49e7b..e35b10f4 100644 --- a/src/metagen/metagen_base/metagen_base_context_cracking.h +++ b/src/metagen/metagen_base/metagen_base_context_cracking.h @@ -141,4 +141,14 @@ # error Endianness of this architecture not understood by context cracker #endif +//////////////////////////////// +//~ rjf: Unsupported Errors + +#if ARCH_X86 +# error You tried to build in x86 (32 bit) mode, but currently, only building in x64 (64 bit) mode is supported. +#endif +#if !ARCH_X64 +# error You tried to build with an unsupported architecture. Currently, only building in x64 mode is supported. +#endif + #endif // BASE_CONTEXT_CRACKING_H