Skip to content

Commit c3dda4a

Browse files
Fix compile error when compiler don't support '__has_feature' (#4874)
1 parent 87a8114 commit c3dda4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/iwasm/aot/aot_runtime.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3267,9 +3267,11 @@ aot_invoke_native(WASMExecEnv *exec_env, uint32 func_idx, uint32 argc,
32673267
bool ret = false;
32683268
bh_assert(func_idx < aot_module->import_func_count);
32693269

3270+
#if defined(__has_feature)
32703271
#if __has_feature(memory_sanitizer)
32713272
#include <sanitizer/msan_interface.h>
32723273
__msan_unpoison(argv, (sizeof(uint32) * argc));
3274+
#endif
32733275
#endif
32743276
import_func = aot_module->import_funcs + func_idx;
32753277
if (import_func->call_conv_wasm_c_api)

0 commit comments

Comments
 (0)