Show cmake debug information. (#2316)

This commit is contained in:
Fangjun Kuang
2025-06-25 17:44:51 +08:00
committed by GitHub
parent 056da0528d
commit 074236ae80
2 changed files with 89 additions and 0 deletions

View File

@@ -347,6 +347,8 @@ endif()
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(show-info)
if(SHERPA_ONNX_ENABLE_WASM)
# Enable it for debugging in case there is something wrong.
# string(APPEND CMAKE_CXX_FLAGS " -g4 -s ASSERTIONS=2 -s SAFE_HEAP=1 -s STACK_OVERFLOW_CHECK=1 ")