LibWasm: Disable direct threading on ASAN builds

ASAN changes tailcall semantics that break the code.
This commit is contained in:
Ali Mohammad Pur 2026-05-31 19:38:07 +02:00 committed by Ali Mohammad Pur
parent 67c03ee103
commit 01db906039

View file

@ -246,7 +246,7 @@ private:
// Disable direct threading when tail calls are not supported at all (gcc < 15);
// as without guaranteed tailcall optimization we cannot ensure that the stack
// will not grow uncontrollably.
#if !defined(HAS_TAILCALL)
#if !defined(HAS_TAILCALL) || defined(HAS_ADDRESS_SANITIZER)
constexpr static auto should_try_to_use_direct_threading = false;
#else
constexpr static auto should_try_to_use_direct_threading = true;