samples/native-stack-overflow: -fstack-usage

This commit is contained in:
YAMAMOTO Takashi 2024-04-22 13:55:19 +09:00
parent 262075db02
commit 74d9659e22

View File

@ -65,6 +65,10 @@ if (NOT MSVC)
endif ()
endif ()
if (CMAKE_C_COMPILER_ID MATCHES "Clang")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-usage")
endif ()
# build out vmlib
set (WAMR_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../..)
include (${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)