From c3dda4a7d65157e0a43fab359f1e293ae4a31ccf Mon Sep 17 00:00:00 2001 From: TianlongLiang <111852609+TianlongLiang@users.noreply.github.com> Date: Tue, 17 Mar 2026 16:06:45 +0800 Subject: [PATCH] Fix compile error when compiler don't support '__has_feature' (#4874) --- core/iwasm/aot/aot_runtime.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/iwasm/aot/aot_runtime.c b/core/iwasm/aot/aot_runtime.c index 13651805d..7f57b1adf 100644 --- a/core/iwasm/aot/aot_runtime.c +++ b/core/iwasm/aot/aot_runtime.c @@ -3267,9 +3267,11 @@ aot_invoke_native(WASMExecEnv *exec_env, uint32 func_idx, uint32 argc, bool ret = false; bh_assert(func_idx < aot_module->import_func_count); +#if defined(__has_feature) #if __has_feature(memory_sanitizer) #include __msan_unpoison(argv, (sizeof(uint32) * argc)); +#endif #endif import_func = aot_module->import_funcs + func_idx; if (import_func->call_conv_wasm_c_api)