Sfoglia il codice sorgente

Enable string literal section for app-manager (#2904)

Xu Jun 2 anni fa
parent
commit
c898d3a364
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      core/app-mgr/app-manager/module_wasm_app.c

+ 4 - 0
core/app-mgr/app-manager/module_wasm_app.c

@@ -1230,8 +1230,12 @@ wasm_app_module_on_install_request_byte_arrive(uint8 ch, int request_total_size,
         uint8 section_type = ch;
 #if WASM_ENABLE_BULK_MEMORY == 0
         uint8 section_type_max = SECTION_TYPE_DATA;
+#else
+#if WASM_ENABLE_STRINGREF != 0
+        uint8 section_type_max = SECTION_TYPE_STRINGREF;
 #else
         uint8 section_type_max = SECTION_TYPE_DATACOUNT;
+#endif /* end of WASM_ENABLE_STRINGREF != 0 */
 #endif
         if (section_type <= section_type_max) {
             wasm_section_t *new_section;