From 51a00a4c2b60e50ae76ccd54c9f0db1c23555168 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Tue, 26 Oct 2021 18:52:30 +0800 Subject: [PATCH] Disable source debugging by default (#804) For cmake based project, there are default values in .cmake, but for other build system, may these symbols were not defined in their build system and warnings (XXX is not defined) were generated while building. Signed-off-by: Huang Qi --- core/config.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/config.h b/core/config.h index aebddaa2..dc11876b 100644 --- a/core/config.h +++ b/core/config.h @@ -138,6 +138,15 @@ #define WASM_ENABLE_THREAD_MGR 0 #endif +/* Source debugging */ +#ifndef WASM_ENABLE_DEBUG_INTERP +#define WASM_ENABLE_DEBUG_INTERP 0 +#endif + +#ifndef WASM_ENABLE_DEBUG_AOT +#define WASM_ENABLE_DEBUG_AOT 0 +#endif + /* WASM log system */ #ifndef WASM_ENABLE_LOG #define WASM_ENABLE_LOG 1