diff options
Diffstat (limited to 'lib/arch')
-rw-r--r-- | lib/arch/api.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/arch/api.h b/lib/arch/api.h index adf773e..3dd5c92 100644 --- a/lib/arch/api.h +++ b/lib/arch/api.h @@ -2,6 +2,20 @@ #pragma once +#if !defined(linux) +static_assert(false, "Matcha Threads only supported on Linux!"); +#endif + +#if defined(__x86_64__) || defined(__amd64__) +// fall-through: x86_64 support +#elif defined(__aarch64__) +// fall-through: arm64 support +#elif defined(__arm__) +// fall-through: armv7 support +#else +static_assert(false, "Unsupported architecture!"); +#endif + // Platform specific API. // When integrating a new platform the following functions must be implemented. |