Browse Source

Remove sortalgs unit for wasm32 CPU instead of only wasi target, as it is the wasm32 cpu that does not support gotos

Pierre Muller 3 years ago
parent
commit
b02b3b79b4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/rtl-extra/fpmake.pp

+ 2 - 2
packages/rtl-extra/fpmake.pp

@@ -159,8 +159,8 @@ begin
      begin
        addinclude('clocale.inc',clocaleincOSes);
      end;
-    T:=P.Targets.AddUnit('sortalgs.pp',AllTargetsextra
-                                       -[wasi]);  { uses goto, which is not supported on the WebAssembly target }
+    { sortalgs unit source code uses goto, which is not supported on wasm32 CPU }
+    T:=P.Targets.AddUnit('sortalgs.pp',AllCPUs-[wasm32], AllTargetsextra);
   end
 end;