Browse Source

+ added mutable globals to the target switches section

Nikolay Nikolov 2 years ago
parent
commit
322befbf56
1 changed files with 3 additions and 1 deletions
  1. 3 1
      compiler/ogwasm.pas

+ 3 - 1
compiler/ogwasm.pas

@@ -1852,10 +1852,12 @@ implementation
           end
         else
           begin
-            WriteUleb(FWasmCustomSections[wcstTargetFeatures],2);
+            WriteUleb(FWasmCustomSections[wcstTargetFeatures],3);
             WriteUleb(FWasmCustomSections[wcstTargetFeatures],$2B);
             WriteName(FWasmCustomSections[wcstTargetFeatures],'bulk-memory');
             WriteUleb(FWasmCustomSections[wcstTargetFeatures],$2B);
+            WriteName(FWasmCustomSections[wcstTargetFeatures],'mutable-globals');
+            WriteUleb(FWasmCustomSections[wcstTargetFeatures],$2B);
             WriteName(FWasmCustomSections[wcstTargetFeatures],'sign-ext');
           end;