소스 검색

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 <huangqi3@xiaomi.com>
Huang Qi 4 년 전
부모
커밋
51a00a4c2b
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      core/config.h

+ 9 - 0
core/config.h

@@ -138,6 +138,15 @@
 #define WASM_ENABLE_THREAD_MGR 0
 #define WASM_ENABLE_THREAD_MGR 0
 #endif
 #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 */
 /* WASM log system */
 #ifndef WASM_ENABLE_LOG
 #ifndef WASM_ENABLE_LOG
 #define WASM_ENABLE_LOG 1
 #define WASM_ENABLE_LOG 1