Warn 32-bit users about their doom. (#783)
This commit is contained in:
parent
74da47e286
commit
4d0c7d706d
|
@ -15,6 +15,20 @@
|
||||||
#define IS_ARM64 1
|
#define IS_ARM64 1
|
||||||
#endif
|
#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?
|
// this is almost standard?
|
||||||
#undef STRINGIFY_IMPLEMENTATION_
|
#undef STRINGIFY_IMPLEMENTATION_
|
||||||
#undef STRINGIFY
|
#undef STRINGIFY
|
||||||
|
|
Loading…
Reference in New Issue