Warn 32-bit users about their doom. (#783)

This commit is contained in:
Daniel Lemire 2020-04-23 16:01:19 -04:00 committed by GitHub
parent 74da47e286
commit 4d0c7d706d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -15,6 +15,20 @@
#define IS_ARM64 1
#endif
#if (!defined(IS_X86_64)) && (!defined(IS_ARM64))
#if _MSC_VER
#pragma message("The simdjson library is designed\
for 64-bit processors and it seems that you are not\
compiling for a known 64-bit platform. All fast kernels\
will be disabled and performance may be poor. Please\
use a 64-bt target such as x64 or 64-bit ARM.")
#else
#error "The simdjson library is designed\
for 64-bit processors. It seems that you are not\
compiling for a known 64-bit platform."
#endif
#endif // (!defined(IS_X86_64)) && (!defined(IS_ARM64))
// this is almost standard?
#undef STRINGIFY_IMPLEMENTATION_
#undef STRINGIFY