Let iwasm return non-zero value when running failed (#1377)

Let iwasm return non-zero value when running failed
so that the caller (e.g. test framework) can check the
running status according to the return value.
This commit is contained in:
Xu Jun
2022-08-12 18:03:14 +08:00
committed by GitHub
parent 872cc51881
commit bc86674a45
4 changed files with 44 additions and 15 deletions

View File

@ -64,6 +64,12 @@ else
App_C_Flags += -DNDEBUG -UEDEBUG -UDEBUG
endif
ifeq ($(SPEC_TEST), 1)
App_C_Flags += -DWASM_ENABLE_SPEC_TEST=1
else
App_C_Flags += -DWASM_ENABLE_SPEC_TEST=0
endif
App_Cpp_Flags := $(App_C_Flags) -std=c++11
App_Link_Flags := $(SGX_COMMON_CFLAGS) libvmlib_untrusted.a -L$(SGX_LIBRARY_PATH) -l$(Urts_Library_Name) -lpthread