Add support for CastXML on ARM aarch64

CastXML simulates the preprocessors of other compilers, but actually
parses the translation unit with an internal Clang compiler.
Use the same `vld1q_u64` workaround that we do for Clang.

Fixes: #1979
This commit is contained in:
Brad King
2020-09-16 13:37:27 -04:00
parent 6f0f6f792e
commit 880fa43b2b
2 changed files with 8 additions and 2 deletions

View File

@@ -72,6 +72,12 @@
#define EIGEN_COMP_CLANG 0
#endif
/// \internal EIGEN_COMP_CASTXML set to 1 if being preprocessed by CastXML
#if defined(__castxml__)
#define EIGEN_COMP_CASTXML 1
#else
#define EIGEN_COMP_CASTXML 0
#endif
/// \internal EIGEN_COMP_LLVM set to 1 if the compiler backend is llvm
#if defined(__llvm__)