From cfdc6344bf5bac730af893a3ad7ea123f1fc41ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 13 Nov 2019 15:18:03 +0100 Subject: [PATCH] [simulator] Increase stack size in debug mode This way we can try the tests in DEBUG mode --- ion/src/simulator/shared/main_headless.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ion/src/simulator/shared/main_headless.cpp b/ion/src/simulator/shared/main_headless.cpp index 8dd954729..0f1fee2de 100644 --- a/ion/src/simulator/shared/main_headless.cpp +++ b/ion/src/simulator/shared/main_headless.cpp @@ -14,7 +14,11 @@ #endif constexpr int kHeapSize = 131072; +#if DEBUG +constexpr int kStackSize = 32768*2; // In DEBUG mode, we increase the stack to be able to pass the tests +#else constexpr int kStackSize = 32768; +#endif char heap[kHeapSize]; extern "C" {