Provide macro to explicitly disable alloca

This commit is contained in:
Charles Schlosser 2025-06-19 04:23:35 +00:00 committed by Rasmus Munk Larsen
parent bcce88c99e
commit 81044ec13d

View File

@ -762,7 +762,7 @@ void swap(scoped_array<T>& a, scoped_array<T>& b) {
* This is accomplished through alloca if this later is supported and if the required number of bytes
* is below EIGEN_STACK_ALLOCATION_LIMIT.
*/
#ifdef EIGEN_ALLOCA
#if defined(EIGEN_ALLOCA) && !defined(EIGEN_NO_ALLOCA)
#if EIGEN_DEFAULT_ALIGN_BYTES > 0
// We always manually re-align the result of EIGEN_ALLOCA.