fix wasm-c-api sample AOT mode. (#636)

This commit is contained in:
doujiang
2021-05-27 13:22:35 +08:00
committed by GitHub
parent ba922b0d0d
commit 631838cfd9
6 changed files with 35 additions and 0 deletions

View File

@ -68,7 +68,11 @@ int main(int argc, const char* argv[]) {
// Load binary.
printf("Loading binary...\n");
#if WASM_ENABLE_AOT != 0 && WASM_ENABLE_INTERP == 0
FILE* file = fopen("callback.aot", "rb");
#else
FILE* file = fopen("callback.wasm", "rb");
#endif
if (!file) {
printf("> Error loading module!\n");
return 1;