[upstream_utils] Restore Eigen intellisense fix (#7404)

This reverts commit d1de7663d3.

Intellisense is still broken on Windows Athena target with the error
`incomplete type "Eigen::Matrix<double, 3, 3, 0, 3, 3>" is not allowed`.
This commit is contained in:
Peter Johnson
2024-11-17 19:11:25 -08:00
committed by GitHub
parent d1de7663d3
commit 661c321fe2
2 changed files with 34 additions and 0 deletions

View File

@@ -174,6 +174,13 @@
//----------------------------------------------------------------------
// Disable vectorization in intellisense
#ifdef __INTELLISENSE__
#ifndef EIGEN_DONT_VECTORIZE
#define EIGEN_DONT_VECTORIZE
#endif
#endif
// if alignment is disabled, then disable vectorization. Note: EIGEN_MAX_ALIGN_BYTES is the proper check, it takes into
// account both the user's will (EIGEN_MAX_ALIGN_BYTES,EIGEN_DONT_ALIGN) and our own platform checks
#if EIGEN_MAX_ALIGN_BYTES == 0